Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
a7827432
Commit
a7827432
authored
May 02, 2014
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: unref buffer in reset_pes_packet_state
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
d7ca9149
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mpegts.c
libavformat/mpegts.c
+2
-1
No files found.
libavformat/mpegts.c
View file @
a7827432
...
...
@@ -791,9 +791,9 @@ static void reset_pes_packet_state(PESContext *pes)
{
pes
->
pts
=
AV_NOPTS_VALUE
;
pes
->
dts
=
AV_NOPTS_VALUE
;
pes
->
buffer
=
NULL
;
pes
->
data_index
=
0
;
pes
->
flags
=
0
;
av_buffer_unref
(
&
pes
->
buffer
);
}
static
void
new_pes_packet
(
PESContext
*
pes
,
AVPacket
*
pkt
)
...
...
@@ -823,6 +823,7 @@ static void new_pes_packet(PESContext *pes, AVPacket *pkt)
pkt
->
pos
=
pes
->
ts_packet_pos
;
pkt
->
flags
=
pes
->
flags
;
pes
->
buffer
=
NULL
;
reset_pes_packet_state
(
pes
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment