diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-08-02 08:39:37 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-08-02 09:33:24 +0200 |
commit | 533d6030ca3e64c87aeb9d04917b716aa8341385 (patch) | |
tree | bcfded1d2c24dae6e0c203f494b4a5c0c664642c /libavcodec | |
parent | e2b455f933bb9acac6c220fd1595f2b80ddb5b7c (diff) | |
download | ffmpeg-533d6030ca3e64c87aeb9d04917b716aa8341385.tar.gz |
avcodec/cfhd: set correct bits_per_raw_sample
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cfhd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 00e15f93a1..60bba9ff81 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -44,7 +44,6 @@ static av_cold int cfhd_init(AVCodecContext *avctx) { CFHDContext *s = avctx->priv_data; - avctx->bits_per_raw_sample = 10; s->avctx = avctx; return ff_cfhd_init_vlcs(s); @@ -555,7 +554,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, ret = AVERROR(EINVAL); break; } - s->bpc = data; + avctx->bits_per_raw_sample = s->bpc = data; } else if (tag == EncodedFormat) { av_log(avctx, AV_LOG_DEBUG, "Sample format? %i\n", data); if (data == 1) { |