Mercurial > libavformat.hg
changeset 3192:85a48dbf1844 libavformat
prevent writing empty stss atom
author | bcoudurier |
---|---|
date | Sun, 30 Mar 2008 21:18:22 +0000 |
parents | 68c7fd8c44ca |
children | 64d885714dff |
files | movenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Sun Mar 30 21:15:06 2008 +0000 +++ b/movenc.c Sun Mar 30 21:18:22 2008 +0000 @@ -734,7 +734,7 @@ 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)