avcodec/codec_desc, jvdec: JV is not intra-only

It reuses the previous frame and does not code unchanged blocks.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.1
Andreas Rheinhardt 8 months ago
parent 876a25027c
commit 41fc62f2e8
  1. 2
      libavcodec/codec_desc.c
  2. 2
      libavcodec/jvdec.c
  3. 14
      tests/ref/fate/jv-demux

@ -1095,7 +1095,7 @@ static const AVCodecDescriptor codec_descriptors[] = {
.type = AVMEDIA_TYPE_VIDEO,
.name = "jv",
.long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV video"),
.props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSY,
.props = AV_CODEC_PROP_LOSSY,
},
{
.id = AV_CODEC_ID_DFA,

@ -215,8 +215,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *rframe,
}
if (video_size) {
s->frame->flags |= AV_FRAME_FLAG_KEY;
s->frame->pict_type = AV_PICTURE_TYPE_I;
#if FF_API_PALETTE_HAS_CHANGED
FF_DISABLE_DEPRECATION_WARNINGS
s->frame->palette_has_changed = s->palette_has_changed;

@ -11,13 +11,13 @@
0, 0, 0, 1, 6, 0x000a0003
1, 0, 0, 131072, 131072, 0x14c664d6
0, 1, 1, 1, 773, 0x11802a51
0, 2, 2, 1, 12974, 0xc2e466b7
0, 3, 3, 1, 12200, 0x3c0eeb31
0, 4, 4, 1, 13339, 0x91d82488
0, 5, 5, 1, 13940, 0x064c350a
0, 6, 6, 1, 14418, 0x078d2dd2
0, 7, 7, 1, 14539, 0x145167ed
0, 8, 8, 1, 2552, 0xcf2b1db7, F=0x3
0, 2, 2, 1, 12974, 0xc2e466b7, F=0x0
0, 3, 3, 1, 12200, 0x3c0eeb31, F=0x0
0, 4, 4, 1, 13339, 0x91d82488, F=0x0
0, 5, 5, 1, 13940, 0x064c350a, F=0x0
0, 6, 6, 1, 14418, 0x078d2dd2, F=0x0
0, 7, 7, 1, 14539, 0x145167ed, F=0x0
0, 8, 8, 1, 2552, 0xcf2b1db7, F=0x2
1, 131072, 131072, 1764, 1764, 0x30be734d
1, 132836, 132836, 1764, 1764, 0xa4c873a7
1, 134600, 134600, 1764, 1764, 0xd5f17443

Loading…
Cancel
Save