On Wed, Jun 29, 2011 at 10:01:00 (CEST), Jason Garrett-Glaser  wrote:

> Module: libav
> Branch: master
> Commit: da55ee6ccc05efdd9006bb8c31db9012a3326857
>
> Author:    Jason Garrett-Glaser <[email protected]>
> Committer: Jason Garrett-Glaser <[email protected]>
> Date:      Tue Jun 28 18:22:23 2011 -0700
>
> Add new yuv444 pixfmts to avcodec_align_dimensions2
>
> Fixes draw_edges crashes with high-bit-depth 4:4:4 decoding.
>
> ---
>
>  libavcodec/utils.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> index 4e15f6f..44a6f8c 100644
> --- a/libavcodec/utils.c
> +++ b/libavcodec/utils.c
> @@ -141,6 +141,10 @@ void avcodec_align_dimensions2(AVCodecContext *s, int 
> *width, int *height, int l
>      case PIX_FMT_YUV420P10BE:
>      case PIX_FMT_YUV422P10LE:
>      case PIX_FMT_YUV422P10BE:
> +    case PIX_FMT_YUV444P9LE:
> +    case PIX_FMT_YUV444P9BE:
> +    case PIX_FMT_YUV444P10LE:
> +    case PIX_FMT_YUV444P10BE:
>          w_align= 16; //FIXME check for non mpeg style codecs and use less 
> alignment
>          h_align= 16;
>          if(s->codec_id == CODEC_ID_MPEG2VIDEO || s->codec_id == 
> CODEC_ID_MJPEG || s->codec_id == CODEC_ID_AMV || s->codec_id == CODEC_ID_THP 
> || s->codec_id == CODEC_ID_H264)

Does this apply to the 0.7 branch as well? I'm asking because I have no
idea where to get the samples and how to reproduce to crash, the commit
message sounds like something for 0.7.1


-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to