[FFmpeg-devel,24/29] avcodec/qsv: remove YUVJ pixel format usage

Submitted by Paul B Mahol on Dec. 10, 2017, 1:14 p.m.

Details

Message ID 20171210131436.15791-24-onemda@gmail.com
State New
Headers show

Commit Message

Paul B Mahol Dec. 10, 2017, 1:14 p.m.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavcodec/qsv.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Bang He Dec. 12, 2017, 9:25 a.m.
hi, why need to remove this format?

On Sun, Dec 10, 2017 at 9:14 PM, Paul B Mahol <onemda@gmail.com> wrote:

> Signed-off-by: Paul B Mahol <onemda@gmail.com>
> ---
>  libavcodec/qsv.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
> index 250b4e61e3..6eee40a222 100644
> --- a/libavcodec/qsv.c
> +++ b/libavcodec/qsv.c
> @@ -171,7 +171,6 @@ int ff_qsv_map_pixfmt(enum AVPixelFormat format,
> uint32_t *fourcc)
>  {
>      switch (format) {
>      case AV_PIX_FMT_YUV420P:
> -    case AV_PIX_FMT_YUVJ420P:
>      case AV_PIX_FMT_NV12:
>          *fourcc = MFX_FOURCC_NV12;
>          return AV_PIX_FMT_NV12;
> --
> 2.11.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
Paul B Mahol Dec. 12, 2017, 9:32 a.m.
On 12/12/17, Bang He <hezhanbang@gmail.com> wrote:
> hi, why need to remove this format?

Because it is deprecated.

Patch hide | download patch | download mbox

diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 250b4e61e3..6eee40a222 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -171,7 +171,6 @@  int ff_qsv_map_pixfmt(enum AVPixelFormat format, uint32_t *fourcc)
 {
     switch (format) {
     case AV_PIX_FMT_YUV420P:
-    case AV_PIX_FMT_YUVJ420P:
     case AV_PIX_FMT_NV12:
         *fourcc = MFX_FOURCC_NV12;
         return AV_PIX_FMT_NV12;