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

Unified Diff: third_party/ffmpeg/source/patched-ffmpeg/libavcodec/pthread.c

Issue 8497048: Fix invalid reads detected by Valgrind when the frame size changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 9 years, 1 month 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: third_party/ffmpeg/source/patched-ffmpeg/libavcodec/pthread.c
===================================================================
--- third_party/ffmpeg/source/patched-ffmpeg/libavcodec/pthread.c (revision 109270)
+++ third_party/ffmpeg/source/patched-ffmpeg/libavcodec/pthread.c (working copy)
@@ -485,6 +485,7 @@
}
fctx->prev_thread = p;
+ fctx->next_decoding++;
return 0;
}
@@ -507,8 +508,6 @@
err = submit_packet(p, avpkt);
if (err) return err;
- fctx->next_decoding++;
-
/*
* If we're still receiving the initial packets, don't return a frame.
*/

Powered by Google App Engine
This is Rietveld 408576698