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

Unified Diff: source/patched-ffmpeg-mt/libavformat/nutdec.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 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 | « source/patched-ffmpeg-mt/libavformat/nullenc.c ('k') | source/patched-ffmpeg-mt/libavformat/oggenc.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/patched-ffmpeg-mt/libavformat/nutdec.c
===================================================================
--- source/patched-ffmpeg-mt/libavformat/nutdec.c (revision 59334)
+++ source/patched-ffmpeg-mt/libavformat/nutdec.c (working copy)
@@ -29,6 +29,12 @@
#undef NDEBUG
#include <assert.h>
+#if FF_API_MAX_STREAMS
+#define NUT_MAX_STREAMS MAX_STREAMS
+#else
+#define NUT_MAX_STREAMS 256 /* arbitrary sanity check value */
+#endif
+
static int get_str(ByteIOContext *bc, char *string, unsigned int maxlen){
unsigned int len= ff_get_v(bc);
@@ -193,7 +199,7 @@
end += url_ftell(bc);
GET_V(tmp , tmp >=2 && tmp <= 3)
- GET_V(stream_count , tmp > 0 && tmp <=MAX_STREAMS)
+ GET_V(stream_count , tmp > 0 && tmp <= NUT_MAX_STREAMS)
nut->max_distance = ff_get_v(bc);
if(nut->max_distance > 65536){
« no previous file with comments | « source/patched-ffmpeg-mt/libavformat/nullenc.c ('k') | source/patched-ffmpeg-mt/libavformat/oggenc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698