OSDN Git Service

bump ffmpeg to rev 22950
[handbrake-jp/handbrake-jp-git.git] / contrib / ffmpeg / A03-png-sequences.patch
1 Index: libavcodec/pngdec.c
2 ===================================================================
3 --- ffmpeg.orig/libavcodec/pngdec.c     (revision 22823)
4 +++ ffmpeg/libavcodec/pngdec.c  (working copy)
5 @@ -597,6 +597,18 @@
6          }
7      }
8   exit_loop:
9 +/* ffmpeg-r18421 introduced support for CorePNG p-frames which
10 + * breaks raw png sequences created by QuickTime Pro.
11 + * since only the first png appears to be marked as PKT_FLAG_KEY
12 + * it means either QuickTime Pro is encoding incorrectly, or
13 + * this code block needs to find other criteria.
14 + *
15 + * As of ffmpeg-r19079 this patch should no longer be required.
16 + * It offers a similar solution; forces code block to be skipped.
17 + *
18 + * --kb
19 + */
20 +#if 0
21       /* handle p-frames only if a predecessor frame is available */
22       if(s->last_picture->data[0] != NULL) {
23           if(!(avpkt->flags & AV_PKT_FLAG_KEY)) {
24 @@ -613,6 +625,7 @@
25              }
26          }
27      }
28 +#endif
29  
30      *picture= *s->current_picture;
31      *data_size = sizeof(AVFrame);