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

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

Issue 2850032: ffmpeg update to june 23 version which fixes mp4 crash on still frames with 3... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 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
Index: source/patched-ffmpeg-mt/libavformat/raw.c
===================================================================
--- source/patched-ffmpeg-mt/libavformat/raw.c (revision 50820)
+++ source/patched-ffmpeg-mt/libavformat/raw.c (working copy)
@@ -457,6 +457,7 @@
int invalid_psc=0;
int res_change=0;
int src_fmt, last_src_fmt=-1;
+ int last_gn=0;
for(i=0; i<p->buf_size; i++){
code = (code<<8) + p->buf[i];
@@ -469,9 +470,16 @@
if((code&0x300)==0x200 && src_fmt){
valid_psc++;
+ last_gn=0;
}else
invalid_psc++;
last_src_fmt= src_fmt;
+ } else if((code & 0xffff800000) == 0x800000) {
+ int gn= (code>>(23-5)) & 0x1F;
+ if(gn<last_gn){
+ invalid_psc++;
+ }else
+ last_gn= gn;
}
}
//av_log(NULL, AV_LOG_ERROR, "h263_probe: psc:%d invalid:%d res_change:%d\n", valid_psc, invalid_psc, res_change);
« no previous file with comments | « source/patched-ffmpeg-mt/libavformat/output-example.c ('k') | source/patched-ffmpeg-mt/libavformat/rtmpproto.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698