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

Unified Diff: media/filters/ffmpeg_demuxer.cc

Issue 7044092: Not allow compression when requesting multimedia (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 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
« no previous file with comments | « chrome_frame/test/net/fake_external_tab.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer.cc
===================================================================
--- media/filters/ffmpeg_demuxer.cc (revision 89645)
+++ media/filters/ffmpeg_demuxer.cc (working copy)
@@ -421,9 +421,10 @@
DCHECK(data_source_);
int64 file_size;
- if (!data_source_->GetSize(&file_size) || position >= file_size ||
- position < 0)
+ if ((data_source_->GetSize(&file_size) && position >= file_size) ||
+ position < 0) {
return false;
+ }
read_position_ = position;
return true;
« no previous file with comments | « chrome_frame/test/net/fake_external_tab.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698