[vlc-devel] [PATCH] avformat: use avcodec codec_tag as original fourcc
Rémi Denis-Courmont
remi at remlab.net
Tue Jan 21 07:02:52 CET 2014
On Mon, 20 Jan 2014 23:00:03 -0700, Daniel Verkamp <daniel at drv.nu> wrote:
> Fixes Bink video playback.
The original FOURCC is an indicative value. Something is wrong if setting
it fixes a functional bug.
> ---
> modules/demux/avformat/demux.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/modules/demux/avformat/demux.c
> b/modules/demux/avformat/demux.c
> index 40d9e07..d407e5e 100644
> --- a/modules/demux/avformat/demux.c
> +++ b/modules/demux/avformat/demux.c
> @@ -303,6 +303,7 @@ int OpenDemux( vlc_object_t *p_this )
>
> case AVMEDIA_TYPE_VIDEO:
> es_format_Init( &fmt, VIDEO_ES, fcc );
> + fmt.i_original_fourcc = cc->codec_tag;
>
> fmt.video.i_bits_per_pixel = cc->bits_per_coded_sample;
> /* Special case for raw video data */
--
Rémi Denis-Courmont
Sent from my collocated server
More information about the vlc-devel
mailing list