OSDN Git Service

bump libtheora to official 1.1 release
[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-03 18:53:52.000000000 -0400
4 @@ -593,6 +593,18 @@
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 + *
14 + * As of ffmpeg-r19079 this patch should no longer be required.
15 + * It offers a similar solution; forces code block to be skipped.
16 + *
17 + * --kb
18 + */
19 +#if 0
20       /* handle p-frames only if a predecessor frame is available */
21       if(s->last_picture->data[0] != NULL) {
22           if(!(avpkt->flags & PKT_FLAG_KEY)) {
23 @@ -609,6 +621,7 @@
24              }
25          }
26      }
27 +#endif
28  
29      *picture= *s->current_picture;
30      *data_size = sizeof(AVFrame);