On 11/03/14 13:53, Luca Barbato wrote:
> ---
> 
> The list above this hunk could be replaced by this, but mp3 and mpegvideo
> have a discrepancy.
> 
>  libavformat/utils.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 3f400e3..9f6a053 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -220,6 +220,13 @@ static int set_codec_from_probe_data(AVFormatContext *s, 
> AVStream *st,
>      };
>      AVInputFormat *fmt = av_probe_input_format2(pd, 1, &score);
> 
> +    if (fmt->raw_codec_id) {
> +        AVCodecDescriptor *d = avcodec_descriptor_get(fmt->raw_codec_id);
> +        if (d) {
> +            st->codec->codec_id   = d->id;
> +            st->codec->codec_type = d->type;
> +    }
> +
>      if (fmt) {
>          int i;
>          av_log(s, AV_LOG_DEBUG,

consider it mostly an rfc... (} added locally)

lu

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to