mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
prevent writing empty stss atom
Originally committed as revision 12636 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5e788d588b
commit
b371539a3d
@ -734,7 +734,7 @@ static int mov_write_stbl_tag(ByteIOContext *pb, MOVTrack* track)
|
|||||||
mov_write_stsd_tag(pb, track);
|
mov_write_stsd_tag(pb, track);
|
||||||
mov_write_stts_tag(pb, track);
|
mov_write_stts_tag(pb, track);
|
||||||
if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
|
if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
|
||||||
track->hasKeyframes < track->entry)
|
track->hasKeyframes && track->hasKeyframes < track->entry)
|
||||||
mov_write_stss_tag(pb, track);
|
mov_write_stss_tag(pb, track);
|
||||||
if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
|
if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
|
||||||
track->hasBframes)
|
track->hasBframes)
|
||||||
|
Loading…
Reference in New Issue
Block a user