diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-03-30 21:18:22 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-03-30 21:18:22 +0000 |
commit | b371539a3d9be9b05cb9ea8065e8e3617a45b02f (patch) | |
tree | dd3377b9ee8747643dc76e492e0fdf72b12a25cf /libavformat | |
parent | 5e788d588be3454f6eaeb04e9fbb1008423221f4 (diff) | |
download | ffmpeg-b371539a3d9be9b05cb9ea8065e8e3617a45b02f.tar.gz |
prevent writing empty stss atom
Originally committed as revision 12636 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 89110210d7..3463ac6b3a 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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) |