[FFmpeg-devel] [PATCH] Fix av_find_best_stream when using a program

Nicolas George nicolas.george
Wed Feb 16 11:24:28 CET 2011

L'octidi 28 pluvi?se, an CCXIX, Balint Marton a ?crit?:
> -        ret = i;
> +        ret = program ? program[i] : i;

I did not actually test it on a file, but this change seems completely
valid. Another solution would be:

	ret = st - ic->streams;

(untested too) to avoid duplicating the test, but it does not make much


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110216/769e6295/attachment.pgp>

More information about the ffmpeg-devel mailing list