X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Frawdec.c;h=e7c83032a036655e53f7e8ef54527140e9a199e4;hb=f9505923a344a56c3ff36925adb7f0c3c9a3996c;hp=ba416db897f86edbcc2cf1246a212fe10421b901;hpb=24823a761cb28eff5876d5de266a7d7103075e94;p=ffmpeg diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index ba416db897f..e7c83032a03 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -94,7 +94,7 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx) { RawVideoContext *context = avctx->priv_data; - if (avctx->codec_tag == MKTAG('r','a','w',' ')) + if (avctx->codec_tag == MKTAG('r','a','w',' ') || avctx->codec_tag == MKTAG('N','O','1','6')) avctx->pix_fmt = ff_find_pix_fmt(pix_fmt_bps_mov, avctx->bits_per_coded_sample); else if (avctx->codec_tag == MKTAG('W','R','A','W')) avctx->pix_fmt = ff_find_pix_fmt(pix_fmt_bps_avi, avctx->bits_per_coded_sample); @@ -272,7 +272,7 @@ static av_cold int raw_close_decoder(AVCodecContext *avctx) AVCodec ff_rawvideo_decoder = { .name = "rawvideo", .type = AVMEDIA_TYPE_VIDEO, - .id = CODEC_ID_RAWVIDEO, + .id = AV_CODEC_ID_RAWVIDEO, .priv_data_size = sizeof(RawVideoContext), .init = raw_init_decoder, .close = raw_close_decoder,