[FFmpeg-cvslog] movenc: remove pointless loop around BITEXACT test
John Stebbins
git at videolan.org
Thu Aug 7 02:41:51 CEST 2014
ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Wed Aug 6 07:42:18 2014 -0700| [d9432789bd119f0e37bcf65cebda05d36aafd4ed] | committer: John Stebbins
movenc: remove pointless loop around BITEXACT test
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9432789bd119f0e37bcf65cebda05d36aafd4ed
---
libavformat/movenc.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 73a78d8..a2d4739 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2041,13 +2041,11 @@ static int mov_write_udta_tag(AVIOContext *pb, MOVMuxContext *mov,
AVFormatContext *s)
{
AVIOContext *pb_buf;
- int i, ret, size;
+ int ret, size;
uint8_t *buf;
- for (i = 0; i < s->nb_streams; i++)
- if (s->flags & AVFMT_FLAG_BITEXACT) {
- return 0;
- }
+ if (s->flags & AVFMT_FLAG_BITEXACT)
+ return 0;
ret = avio_open_dyn_buf(&pb_buf);
if (ret < 0)
More information about the ffmpeg-cvslog
mailing list