[FFmpeg-devel] [PATCH 5/7] lavc/hevc_ps: fix PIX_FMT enums

Michael Niedermayer michaelni at gmx.at
Sun Oct 13 01:38:54 CEST 2013


On Sat, Oct 12, 2013 at 08:42:31PM +0000, Paul B Mahol wrote:
> On 10/12/13, Michael Niedermayer <michaelni at gmx.at> wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libavcodec/hevc_ps.c |    6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
> > index 5f0b52d..84d53ab 100644
> > --- a/libavcodec/hevc_ps.c
> > +++ b/libavcodec/hevc_ps.c
> > @@ -623,9 +623,9 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
> >
> >      if (sps->chroma_format_idc == 1) {
> >          switch (sps->bit_depth) {
> > -        case 8:  sps->pix_fmt = PIX_FMT_YUV420P;   break;
> > -        case 9:  sps->pix_fmt = PIX_FMT_YUV420P9;  break;
> > -        case 10: sps->pix_fmt = PIX_FMT_YUV420P10; break;
> > +        case 8:  sps->pix_fmt = AV_PIX_FMT_YUV420P;   break;
> > +        case 9:  sps->pix_fmt = AV_PIX_FMT_YUV420P9;  break;
> > +        case 10: sps->pix_fmt = AV_PIX_FMT_YUV420P10; break;
> >          default:
> >              av_log(s->avctx, AV_LOG_ERROR, "Unsupported bit depth: %d\n",
> >                     sps->bit_depth);
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> 
> Why is this separate patch?

simplifies future merges

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131013/fe3fac19/attachment.asc>


More information about the ffmpeg-devel mailing list