OSDN Git Service

ee1708705ed122b05d71fbf20d57da0c8d032e1f
[handbrake-jp/handbrake-jp-git.git] / contrib / ffmpeg / A03-png-sequences.patch
1 diff -Naur ffmpeg-r19067.orig/libavcodec/pngdec.c ffmpeg-r19067/libavcodec/pngdec.c
2 --- ffmpeg-r19067.orig/libavcodec/pngdec.c      2009-05-24 08:44:54.000000000 -0400
3 +++ ffmpeg-r19067/libavcodec/pngdec.c   2009-06-02 23:42:29.000000000 -0400
4 @@ -593,6 +593,14 @@
5          }
6      }
7   exit_loop:
8 +/* ffmpeg-r18421 introduced support for CorePNG p-frames which
9 + * breaks raw png sequences created by QuickTime Pro.
10 + * since only the first png appears to be marked as PKT_FLAG_KEY
11 + * it means either QuickTime Pro is encoding incorrectly, or
12 + * this code block needs to find other criteria.
13 + * --kb
14 + */
15 +#if 0
16       /* handle p-frames only if a predecessor frame is available */
17       if(s->last_picture->data[0] != NULL) {
18           if(!(avpkt->flags & PKT_FLAG_KEY)) {
19 @@ -609,6 +617,7 @@
20              }
21          }
22      }
23 +#endif
24  
25      *picture= *s->current_picture;
26      *data_size = sizeof(AVFrame);