Re: [FFmpeg-devel] [PATCH] vp9_mc_template: disable assert for SCALED == 0

2016-11-13 Thread Andreas Cadhalpun
On 13.11.2016 03:22, Ronald S. Bultje wrote:
> Hi Andreas,
> 
> On Nov 12, 2016 5:52 PM, "Andreas Cadhalpun" 
> > 
> wrote:
>>
>> The handling of the other block sizes was disabled for 'SCALED == 0' in
>> commit dc96c0f9fc96bf4167633befc074394062793322, so this assert should
>> be disabled, too, as it can now be triggered.
>>
>> Signed-off-by: Andreas Cadhalpun > >
>> ---
>>
>> At least that would be the easy fix, but I'd be glad if Ronald could
>> comment on this.
>>
>> ---
>>  libavcodec/vp9_mc_template.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/libavcodec/vp9_mc_template.c b/libavcodec/vp9_mc_template.c
>> index 38d9a6d..e7f226c 100644
>> --- a/libavcodec/vp9_mc_template.c
>> +++ b/libavcodec/vp9_mc_template.c
>> @@ -205,7 +205,9 @@ static void FN(inter_pred)(AVCodecContext *ctx)
>>  } else
>>  #endif
>>  {
>> +#if SCALED == 0
>>  av_assert2(b->bs == BS_4x4);
>> +#endif
> 
> I think you're right, thanks for finding this.

Pushed after fixing the commit message: the assert is limited to SCALED == 0,
not disabled for it.

Best regards,
Andreas
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH] vp9_mc_template: disable assert for SCALED == 0

2016-11-12 Thread Ronald S. Bultje
Hi Andreas,

On Nov 12, 2016 5:52 PM, "Andreas Cadhalpun" <
andreas.cadhal...@googlemail.com> wrote:
>
> The handling of the other block sizes was disabled for 'SCALED == 0' in
> commit dc96c0f9fc96bf4167633befc074394062793322, so this assert should
> be disabled, too, as it can now be triggered.
>
> Signed-off-by: Andreas Cadhalpun 
> ---
>
> At least that would be the easy fix, but I'd be glad if Ronald could
> comment on this.
>
> ---
>  libavcodec/vp9_mc_template.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavcodec/vp9_mc_template.c b/libavcodec/vp9_mc_template.c
> index 38d9a6d..e7f226c 100644
> --- a/libavcodec/vp9_mc_template.c
> +++ b/libavcodec/vp9_mc_template.c
> @@ -205,7 +205,9 @@ static void FN(inter_pred)(AVCodecContext *ctx)
>  } else
>  #endif
>  {
> +#if SCALED == 0
>  av_assert2(b->bs == BS_4x4);
> +#endif

I think you're right, thanks for finding this.

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


[FFmpeg-devel] [PATCH] vp9_mc_template: disable assert for SCALED == 0

2016-11-12 Thread Andreas Cadhalpun
The handling of the other block sizes was disabled for 'SCALED == 0' in
commit dc96c0f9fc96bf4167633befc074394062793322, so this assert should
be disabled, too, as it can now be triggered.

Signed-off-by: Andreas Cadhalpun 
---

At least that would be the easy fix, but I'd be glad if Ronald could
comment on this.

---
 libavcodec/vp9_mc_template.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/vp9_mc_template.c b/libavcodec/vp9_mc_template.c
index 38d9a6d..e7f226c 100644
--- a/libavcodec/vp9_mc_template.c
+++ b/libavcodec/vp9_mc_template.c
@@ -205,7 +205,9 @@ static void FN(inter_pred)(AVCodecContext *ctx)
 } else
 #endif
 {
+#if SCALED == 0
 av_assert2(b->bs == BS_4x4);
+#endif
 
 // FIXME if two horizontally adjacent blocks have the same MV,
 // do a w8 instead of a w4 call
-- 
2.10.2
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel