Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: patched-ffmpeg-mt/libavformat/mtv.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: patched-ffmpeg-mt/libavformat/mtv.c
===================================================================
--- patched-ffmpeg-mt/libavformat/mtv.c (revision 41250)
+++ patched-ffmpeg-mt/libavformat/mtv.c (working copy)
@@ -168,8 +168,8 @@
url_fskip(pb, MTV_AUDIO_PADDING_SIZE);
ret = av_get_packet(pb, pkt, MTV_ASUBCHUNK_DATA_SIZE);
- if(ret != MTV_ASUBCHUNK_DATA_SIZE)
- return AVERROR(EIO);
+ if(ret < 0)
+ return ret;
pkt->pos -= MTV_AUDIO_PADDING_SIZE;
pkt->stream_index = AUDIO_SID;
@@ -177,8 +177,8 @@
}else
{
ret = av_get_packet(pb, pkt, mtv->img_segment_size);
- if(ret != mtv->img_segment_size)
- return AVERROR(EIO);
+ if(ret < 0)
+ return ret;
#if !HAVE_BIGENDIAN

Powered by Google App Engine
This is Rietveld 408576698