aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-03-30 21:18:22 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-03-30 21:18:22 +0000
commitb371539a3d9be9b05cb9ea8065e8e3617a45b02f (patch)
treedd3377b9ee8747643dc76e492e0fdf72b12a25cf /libavformat
parent5e788d588be3454f6eaeb04e9fbb1008423221f4 (diff)
downloadffmpeg-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.c2
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)