Browse Source

pixdesc: fix NV20* descriptors

They were inconsistent (overlapping fields and wrong sizes)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n2.1
Michael Niedermayer Anton Khirnov 12 years ago
parent
commit
a454dec19a
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      libavutil/pixdesc.c

+ 6
- 6
libavutil/pixdesc.c View File

@@ -1410,9 +1410,9 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.log2_chroma_w = 1, .log2_chroma_w = 1,
.log2_chroma_h = 0, .log2_chroma_h = 0,
.comp = { .comp = {
{ 0, 0, 1, 0, 9 }, /* Y */
{ 1, 1, 1, 0, 9 }, /* U */
{ 1, 1, 3, 0, 9 }, /* V */
{ 0, 1, 1, 0, 9 }, /* Y */
{ 1, 3, 1, 0, 9 }, /* U */
{ 1, 3, 3, 0, 9 }, /* V */
}, },
.flags = AV_PIX_FMT_FLAG_PLANAR, .flags = AV_PIX_FMT_FLAG_PLANAR,
}, },
@@ -1422,9 +1422,9 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.log2_chroma_w = 1, .log2_chroma_w = 1,
.log2_chroma_h = 0, .log2_chroma_h = 0,
.comp = { .comp = {
{ 0, 0, 1, 0, 9 }, /* Y */
{ 1, 1, 1, 0, 9 }, /* U */
{ 1, 1, 3, 0, 9 }, /* V */
{ 0, 1, 1, 0, 9 }, /* Y */
{ 1, 3, 1, 0, 9 }, /* U */
{ 1, 3, 3, 0, 9 }, /* V */
}, },
.flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_BE, .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_BE,
}, },


Loading…
Cancel
Save