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

Unified Diff: patched-ffmpeg-mt/libavformat/idcin.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/idcin.c
===================================================================
--- patched-ffmpeg-mt/libavformat/idcin.c (revision 41250)
+++ patched-ffmpeg-mt/libavformat/idcin.c (working copy)
@@ -260,8 +260,8 @@
url_fseek(pb, 4, SEEK_CUR);
chunk_size -= 4;
ret= av_get_packet(pb, pkt, chunk_size);
- if (ret != chunk_size)
- return AVERROR(EIO);
+ if (ret < 0)
+ return ret;
pkt->stream_index = idcin->video_stream_index;
pkt->pts = idcin->pts;
} else {
@@ -271,8 +271,8 @@
else
chunk_size = idcin->audio_chunk_size1;
ret= av_get_packet(pb, pkt, chunk_size);
- if (ret != chunk_size)
- return AVERROR(EIO);
+ if (ret < 0)
+ return ret;
pkt->stream_index = idcin->audio_stream_index;
pkt->pts = idcin->pts;

Powered by Google App Engine
This is Rietveld 408576698