Re: [libav-devel] [PATCH] vdpau: add av_vdpau_get_level()

2014-03-21 Thread Tim Walker
On 20 Mar 2014, at 18:03, Rémi Denis-Courmont r...@remlab.net wrote: +int av_vdpau_get_level(AVCodecContext *avctx, unsigned *levelp) +{ +unsigned level = avctx-level; + +if (level == FF_LEVEL_UNKNOWN) +return AVERROR(EINVAL); FWIW, AVCodecContext.level is signed, and

Re: [libav-devel] [PATCH] vdpau: add av_vdpau_get_level()

2014-03-21 Thread Rémi Denis-Courmont
On Fri, 21 Mar 2014 10:53:45 +0100, Tim Walker tdskywal...@gmail.com wrote: On 20 Mar 2014, at 18:03, Rémi Denis-Courmont r...@remlab.net wrote: +int av_vdpau_get_level(AVCodecContext *avctx, unsigned *levelp) +{ +unsigned level = avctx-level; + +if (level == FF_LEVEL_UNKNOWN) +

Re: [libav-devel] [PATCH] vdpau: add av_vdpau_get_level()

2014-03-21 Thread Tim Walker
On 21 Mar 2014, at 11:46, Rémi Denis-Courmont r...@remlab.net wrote: On Fri, 21 Mar 2014 10:53:45 +0100, Tim Walker tdskywal...@gmail.com wrote: On 20 Mar 2014, at 18:03, Rémi Denis-Courmont r...@remlab.net wrote: +int av_vdpau_get_level(AVCodecContext *avctx, unsigned *levelp) +{ +

[libav-devel] [PATCH] vdpau: add av_vdpau_get_level()

2014-03-20 Thread Rémi Denis-Courmont
This was the last bit of codec-specific handling in VLC. --- doc/APIchanges | 3 +++ libavcodec/vdpau.c | 28 libavcodec/vdpau.h | 14 ++ libavcodec/version.h | 4 ++-- 4 files changed, 47 insertions(+), 2 deletions(-) diff --git

Re: [libav-devel] [PATCH] vdpau: add av_vdpau_get_level()

2014-03-20 Thread Rémi Denis-Courmont
Le jeudi 20 mars 2014, 19:03:29 Rémi Denis-Courmont a écrit : This was the last bit of codec-specific handling in VLC. Well, almost last. (Still special H.264 case for reference frames count.) -- Rémi Denis-Courmont http://www.remlab.net/ ___

Re: [libav-devel] [PATCH] vdpau: add av_vdpau_get_level()

2014-03-20 Thread wm4
On Thu, 20 Mar 2014 19:10:23 +0200 Rémi Denis-Courmont r...@remlab.net wrote: Le jeudi 20 mars 2014, 19:03:29 Rémi Denis-Courmont a écrit : This was the last bit of codec-specific handling in VLC. Well, almost last. (Still special H.264 case for reference frames count.)

Re: [libav-devel] [PATCH] vdpau: add av_vdpau_get_level()

2014-03-20 Thread Rémi Denis-Courmont
Le jeudi 20 mars 2014, 18:31:19 wm4 a écrit : On Thu, 20 Mar 2014 19:10:23 +0200 Rémi Denis-Courmont r...@remlab.net wrote: Le jeudi 20 mars 2014, 19:03:29 Rémi Denis-Courmont a écrit : This was the last bit of codec-specific handling in VLC. Well, almost last. (Still special H.264