Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
c3e58f8f
Commit
c3e58f8f
authored
Jun 23, 2013
by
Rafaël Carré
Committed by
Anton Khirnov
Jun 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskaenc: restore compatibility with non referenced AVPacket
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
95d52464
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
matroskaenc.c
libavformat/matroskaenc.c
+5
-2
No files found.
libavformat/matroskaenc.c
View file @
c3e58f8f
...
...
@@ -1298,8 +1298,11 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
// keyframe's timecode is contained in the same cluster for WebM
if
(
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
{
mkv
->
cur_audio_pkt
=
*
pkt
;
mkv
->
cur_audio_pkt
.
buf
=
av_buffer_ref
(
pkt
->
buf
);
ret
=
mkv
->
cur_audio_pkt
.
buf
?
0
:
AVERROR
(
ENOMEM
);
if
(
pkt
->
buf
)
{
mkv
->
cur_audio_pkt
.
buf
=
av_buffer_ref
(
pkt
->
buf
);
ret
=
mkv
->
cur_audio_pkt
.
buf
?
0
:
AVERROR
(
ENOMEM
);
}
else
ret
=
av_dup_packet
(
&
mkv
->
cur_audio_pkt
);
}
else
ret
=
mkv_write_packet_internal
(
s
,
pkt
);
return
ret
;
...
...
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