lavc: fix avcodec_find_best_pix_fmt() when there's more than 64 pixel formats
authorMatthew Einhorn <moiein2000@gmail.com>
Wed, 17 Aug 2011 05:58:33 +0000 (01:58 -0400)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 17 Aug 2011 23:02:34 +0000 (01:02 +0200)
commit39f9601c10f51fea519f16bccb4509f8ed3c51a7
tree04ea94c758f7e75073a1f0ac3c10498dcb5bba10
parentdc6c36ce46d4c4d7cb63503afc2ee44f00bf3725
lavc: fix avcodec_find_best_pix_fmt() when there's more than 64 pixel formats

This fixed the problem where if there's more than 64 pixel formats
defined avcodec_find_best_pix_fmt() returns the wrong pixel format.

Signed-off-by: Matthew Einhorn <moiein2000@gmail.com>
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
libavcodec/avcodec.h
libavcodec/imgconvert.c