[FFmpeg-devel] [PATCH 2/3] lavc/dnxhddata: check profile frame_rate in ff_dnxhd_get_cid_table

Matthieu Bouron matthieu.bouron at gmail.com
Tue Jan 29 09:16:27 CET 2013


On Sat, Jan 26, 2013 at 12:46:00PM +0100, Matthieu Bouron wrote:
> ---
>  libavcodec/dnxhddata.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c
> index 71cb333..a53aeb6 100644
> --- a/libavcodec/dnxhddata.c
> +++ b/libavcodec/dnxhddata.c
> @@ -1057,7 +1057,8 @@ int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth)
>              cid->interlaced == !!(avctx->flags & CODEC_FLAG_INTERLACED_DCT) &&
>              cid->bit_depth == bit_depth) {
>              for (j = 0; j < FF_ARRAY_ELEMS(cid->bit_rates); j++) {
> -                if (cid->bit_rates[j] == mbs)
> +                if (cid->bit_rates[j] == mbs &&
> +                    !av_cmp_q(cid->frame_rates[j], av_inv_q(avctx->time_base)))
>                      return cid->cid;
>              }
>          }

Ping


More information about the ffmpeg-devel mailing list