Commit 6afd2897 authored by bcoudurier's avatar bcoudurier

prevent writing empty stss atom

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12636 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0963a167
......@@ -734,7 +734,7 @@ static int mov_write_stbl_tag(ByteIOContext *pb, MOVTrack* track)
mov_write_stsd_tag(pb, track);
mov_write_stts_tag(pb, track);
if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
track->hasKeyframes < track->entry)
track->hasKeyframes && track->hasKeyframes < track->entry)
mov_write_stss_tag(pb, track);
if (track->enc->codec_type == CODEC_TYPE_VIDEO &&
track->hasBframes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment