]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mvi.c
Support decoding Avid 1:1x codec, (partially) fixes issue1684.
[ffmpeg] / libavformat / mvi.c
index 03d4a5d6b50eb305e2145193ef87e1f581ccbc83..89c47da4732b71094dd5d1f6efb57110996a9400 100644 (file)
@@ -80,13 +80,12 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
     ast->codec->codec_type      = CODEC_TYPE_AUDIO;
     ast->codec->codec_id        = CODEC_ID_PCM_U8;
     ast->codec->channels        = 1;
-    ast->codec->bits_per_sample = 8;
+    ast->codec->bits_per_coded_sample = 8;
     ast->codec->bit_rate        = ast->codec->sample_rate * 8;
 
     av_set_pts_info(vst, 64, msecs_per_frame, 1000000);
     vst->codec->codec_type = CODEC_TYPE_VIDEO;
     vst->codec->codec_id   = CODEC_ID_MOTIONPIXELS;
-    vst->codec->pix_fmt    = PIX_FMT_RGB555;
 
     mvi->get_int = (vst->codec->width * vst->codec->height < (1 << 16)) ? get_le16 : get_le24;