[FFmpeg-cvslog] lavc/h264_slice: use sps directly when checking for invalid 8x8 inference

2016-07-03 Thread Clément Bœsch
ffmpeg | branch: master | Clément Bœsch  | Sat Jul  2 19:22:34 
2016 +0200| [64c619369b3caba0e32b5deed5d1cda7726bc089] | committer: Clément 
Bœsch

lavc/h264_slice: use sps directly when checking for invalid 8x8 inference

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=64c619369b3caba0e32b5deed5d1cda7726bc089
---

 libavcodec/h264_slice.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index ca492ba..22916f1 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1466,7 +1466,7 @@ static int h264_slice_header_parse(H264Context *h, 
H264SliceContext *sl)
 if (sps->frame_mbs_only_flag) {
 picture_structure = PICT_FRAME;
 } else {
-if (!h->ps.sps->direct_8x8_inference_flag && slice_type == 
AV_PICTURE_TYPE_B) {
+if (!sps->direct_8x8_inference_flag && slice_type == 
AV_PICTURE_TYPE_B) {
 av_log(h->avctx, AV_LOG_ERROR, "This stream was generated by a 
broken encoder, invalid 8x8 inference\n");
 return -1;
 }

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


[FFmpeg-cvslog] avcodec: add missing xmm/neon clobber test wrappers for the new decode API

2016-07-03 Thread James Almer
ffmpeg | branch: master | James Almer  | Sun Jul  3 16:43:08 
2016 -0300| [293484fa5e444bf0437d010f8e9808555102eb90] | committer: James Almer

avcodec: add missing xmm/neon clobber test wrappers for the new decode API

Reviewed-by: Ronald S. Bultje 
Signed-off-by: James Almer 

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=293484fa5e444bf0437d010f8e9808555102eb90
---

 configure |4 
 libavcodec/aarch64/neontest.c |   10 ++
 libavcodec/arm/neontest.c |   10 ++
 libavcodec/x86/w64xmmtest.c   |   10 ++
 4 files changed, 34 insertions(+)

diff --git a/configure b/configure
index 007c953..22298df 100755
--- a/configure
+++ b/configure
@@ -6027,6 +6027,8 @@ enabled neon_clobber_test &&
   -Wl,--wrap,avcodec_decode_subtitle2   \
   -Wl,--wrap,avcodec_encode_audio2  \
   -Wl,--wrap,avcodec_encode_video2  \
+  -Wl,--wrap,avcodec_send_packet\
+  -Wl,--wrap,avcodec_receive_frame  \
   -Wl,--wrap,avcodec_encode_subtitle\
   -Wl,--wrap,swr_convert\
   -Wl,--wrap,avresample_convert ||
@@ -6040,6 +6042,8 @@ enabled xmm_clobber_test &&
   -Wl,--wrap,avcodec_encode_audio2  \
   -Wl,--wrap,avcodec_encode_video2  \
   -Wl,--wrap,avcodec_encode_subtitle\
+  -Wl,--wrap,avcodec_send_packet\
+  -Wl,--wrap,avcodec_receive_frame  \
   -Wl,--wrap,swr_convert\
   -Wl,--wrap,avresample_convert \
   -Wl,--wrap,sws_scale ||
diff --git a/libavcodec/aarch64/neontest.c b/libavcodec/aarch64/neontest.c
index b1f1a6d..302a322 100644
--- a/libavcodec/aarch64/neontest.c
+++ b/libavcodec/aarch64/neontest.c
@@ -77,3 +77,13 @@ wrap(avcodec_encode_video2(AVCodecContext *avctx, AVPacket 
*avpkt,
 {
 testneonclobbers(avcodec_encode_video2, avctx, avpkt, frame, 
got_packet_ptr);
 }
+
+wrap(avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt))
+{
+testneonclobbers(avcodec_send_packet, avctx, avpkt);
+}
+
+wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame))
+{
+testneonclobbers(avcodec_receive_frame, avctx, frame);
+}
diff --git a/libavcodec/arm/neontest.c b/libavcodec/arm/neontest.c
index a81d14d..51d158b 100644
--- a/libavcodec/arm/neontest.c
+++ b/libavcodec/arm/neontest.c
@@ -77,3 +77,13 @@ wrap(avcodec_encode_video2(AVCodecContext *avctx, AVPacket 
*avpkt,
 {
 testneonclobbers(avcodec_encode_video2, avctx, avpkt, frame, 
got_packet_ptr);
 }
+
+wrap(avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt))
+{
+testneonclobbers(avcodec_send_packet, avctx, avpkt);
+}
+
+wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame))
+{
+testneonclobbers(avcodec_receive_frame, avctx, frame);
+}
diff --git a/libavcodec/x86/w64xmmtest.c b/libavcodec/x86/w64xmmtest.c
index 94b3049..3d466d2 100644
--- a/libavcodec/x86/w64xmmtest.c
+++ b/libavcodec/x86/w64xmmtest.c
@@ -77,3 +77,13 @@ wrap(avcodec_encode_video2(AVCodecContext *avctx, AVPacket 
*avpkt,
 {
 testxmmclobbers(avcodec_encode_video2, avctx, avpkt, frame, 
got_packet_ptr);
 }
+
+wrap(avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt))
+{
+testxmmclobbers(avcodec_send_packet, avctx, avpkt);
+}
+
+wrap(avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame))
+{
+testxmmclobbers(avcodec_receive_frame, avctx, frame);
+}

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


[FFmpeg-cvslog] configure: disable the new optimizer in Visual Studio 2015 Update 3

2016-07-03 Thread Hendrik Leppkes
ffmpeg | branch: master | Hendrik Leppkes  | Tue Jun 28 
11:48:29 2016 +0200| [1ad4471526c70d073b19bd551dc4193457d1e610] | committer: 
Hendrik Leppkes

configure: disable the new optimizer in Visual Studio 2015 Update 3

Visual Studio 2015 Update 3 introduced a new SSA optimizer, however
it unfortunately causes miscompilations. Until it is fixed, the new
optimizations are disabled and should be re-checked on subsequent
compiler releases.

Fixes recent FATE failure of fate-lavf-pam on VS2015.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ad4471526c70d073b19bd551dc4193457d1e610
---

 configure |4 
 1 file changed, 4 insertions(+)

diff --git a/configure b/configure
index 22298df..126d0d6 100755
--- a/configure
+++ b/configure
@@ -6207,6 +6207,10 @@ __declspec($_restrict) void* foo(int);
 EOF
 fi
 check_func strtoll || add_cflags -Dstrtoll=_strtoi64
+# the new SSA optimzer in VS2015 U3 is mis-optimizing some parts of the 
code
+# this flag should be re-checked on newer compiler releases and put under a
+# version check once its fixed
+check_cflags -d2SSAOptimizer-
 fi
 
 for pfx in "" host_; do

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog