]> granicus.if.org Git - handbrake/commitdiff
Bump Libav to v9.1.
authorRodeo <tdskywalker@gmail.com>
Wed, 16 Jan 2013 19:19:43 +0000 (19:19 +0000)
committerRodeo <tdskywalker@gmail.com>
Wed, 16 Jan 2013 19:19:43 +0000 (19:19 +0000)
Fixes high bit-depth H.264 decoding.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5176 b64f7644-9d1e-0410-96f1-a4d463321fa5

contrib/ffmpeg/A01-swscale-assert.patch
contrib/ffmpeg/A03-h264-recovery-point.patch
contrib/ffmpeg/A04-dca-resync.patch [moved from contrib/ffmpeg/A05-dca-resync.patch with 100% similarity]
contrib/ffmpeg/A04-snow-use-videodspcontext.patch [deleted file]
contrib/ffmpeg/P01-solaris.patch
contrib/ffmpeg/P02-darwin-pic.patch
contrib/ffmpeg/module.defs

index e0b6aad6beb706fcfacd32e3655b9e586ceeb303..9db84b7fa6a8d9fadafa40031d254f1a2067c10b 100644 (file)
@@ -1,5 +1,5 @@
 diff --git a/libswscale/utils.c b/libswscale/utils.c
-index e5e4d60..062ae01 100644
+index f0a2b46..61506c6 100644
 --- a/libswscale/utils.c
 +++ b/libswscale/utils.c
 @@ -531,7 +531,9 @@ static int initFilter(int16_t **outFilter, int32_t **filterPos,
index bbd25ab460ebd9d6b10db98c8c140b77ec072c16..78c182df271c5d024315c545d824c9bcba65ac28 100644 (file)
@@ -1,5 +1,5 @@
 diff --git a/libavcodec/h264.c b/libavcodec/h264.c
-index 1a0b341..98a0350 100644
+index 3660597..bf4e072 100644
 --- a/libavcodec/h264.c
 +++ b/libavcodec/h264.c
 @@ -2163,6 +2163,7 @@ static void flush_dpb(AVCodecContext *avctx)
@@ -10,7 +10,7 @@ index 1a0b341..98a0350 100644
  }
  
  static int init_poc(H264Context *h)
-@@ -3976,9 +3977,18 @@ again:
+@@ -3981,9 +3982,18 @@ again:
                  if ((err = decode_slice_header(hx, h)))
                      break;
  
diff --git a/contrib/ffmpeg/A04-snow-use-videodspcontext.patch b/contrib/ffmpeg/A04-snow-use-videodspcontext.patch
deleted file mode 100644 (file)
index fc9a120..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-diff --git a/libavcodec/snow.c b/libavcodec/snow.c
-index b9dab45..153e5b2 100644
---- a/libavcodec/snow.c
-+++ b/libavcodec/snow.c
-@@ -349,7 +349,7 @@ void ff_snow_pred_block(SnowContext *s, uint8_t *dst, uint8_t *tmp, int stride,
-         src += sx + sy*stride;
-         if(   (unsigned)sx >= w - b_w - (HTAPS_MAX-2)
-            || (unsigned)sy >= h - b_h - (HTAPS_MAX-2)){
--            s->dsp.emulated_edge_mc(tmp + MB_SIZE, src, stride, b_w+HTAPS_MAX-1, b_h+HTAPS_MAX-1, sx, sy, w, h);
-+            s->vdsp.emulated_edge_mc(tmp + MB_SIZE, src, stride, b_w+HTAPS_MAX-1, b_h+HTAPS_MAX-1, sx, sy, w, h);
-             src= tmp + MB_SIZE;
-         }
- //        assert(b_w == b_h || 2*b_w == b_h || b_w == 2*b_h);
-@@ -402,6 +402,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
-     s->max_ref_frames=1; //just make sure its not an invalid value in case of no initial keyframe
-     ff_dsputil_init(&s->dsp, avctx);
-+    ff_videodsp_init(&s->vdsp, 8);
-     ff_dwt_init(&s->dwt);
- #define mcf(dx,dy)\
-diff --git a/libavcodec/snow.h b/libavcodec/snow.h
-index abf3309..b988115 100644
---- a/libavcodec/snow.h
-+++ b/libavcodec/snow.h
-@@ -108,6 +108,7 @@ typedef struct SnowContext{
-     AVCodecContext *avctx;
-     RangeCoder c;
-     DSPContext dsp;
-+    VideoDSPContext vdsp;
-     DWTContext dwt;
-     AVFrame new_picture;
-     AVFrame input_picture;              ///< new_picture with the internal linesizes
index b979079413bc95482c28ec24820a557e72fa5d76..0a2355f9190ad3a626476b8d3eca2b58fbb968ef 100644 (file)
@@ -1,8 +1,8 @@
 diff --git a/configure b/configure
-index 5355300..5ac7bc0 100755
+index e87a326..5ccfc0f 100755
 --- a/configure
 +++ b/configure
-@@ -3146,7 +3146,7 @@ EOF
+@@ -3156,7 +3156,7 @@ EOF
  check_cc <<EOF || die "endian test failed"
  unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
  EOF
index 576c23e795e018722ddf3cd1aa23b1dc236bf260..0e0a084298998b9808e7cdd39bd125ebe9840495 100644 (file)
@@ -1,8 +1,8 @@
 diff --git a/configure b/configure
-index 5355300..7ae7148 100755
+index e87a326..422a7a5 100755
 --- a/configure
 +++ b/configure
-@@ -2868,6 +2868,7 @@ case $target_os in
+@@ -2878,6 +2878,7 @@ case $target_os in
          AVSERVERLDFLAGS=-Wl,-bind_at_load
          objformat="macho"
          enabled x86_64 && objformat="macho64"
@@ -10,7 +10,7 @@ index 5355300..7ae7148 100755
          enabled_any pic shared ||
              { check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; }
          ;;
-@@ -3070,7 +3071,7 @@ esc(){
+@@ -3080,7 +3081,7 @@ esc(){
  
  echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $LIBAV_CONFIGURATION)" >config.fate
  
index 3dbe5d88a5e6c25dcdf37d4b2b59c95b209199a9..22c1aea564277755576ff76f5d77be866db02758 100644 (file)
@@ -1,7 +1,7 @@
 $(eval $(call import.MODULE.defs,FFMPEG,ffmpeg,YASM BZIP2 ZLIB))
 $(eval $(call import.CONTRIB.defs,FFMPEG))
 
-FFMPEG.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libav-v9_beta3.tar.bz2
+FFMPEG.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libav-v9.1.tar.bz2
 
 FFMPEG.CONFIGURE.deps =
 FFMPEG.CONFIGURE.env  =