History

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

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

Andreas Rheinhardt committed 2 years ago

Commit 41fc62f1 parent 876a2503 files · +8 −10Browse files

Unified · Split

3 files
  1. libavcodec/codec_desc.c +1 −1
  2. libavcodec/jvdec.c +0 −2
  3. tests/ref/fate/jv-demux +7 −7
libavcodec/codec_desc.c+1−1
@@ -1095,7 +1095,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 1094 unmodified lines
10951095 .type = AVMEDIA_TYPE_VIDEO,
10961096 .name = "jv",
10971097 .long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV video"),
1098− .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSY,
1098+ .props = AV_CODEC_PROP_LOSSY,
10991099 },
11001100 {
11011101 .id = AV_CODEC_ID_DFA,
libavcodec/jvdec.c+0−2
@@ -215,8 +215,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *rframe, · 214 unmodified lines
215215 }
216216
217217 if (video_size) {
218− s->frame->flags |= AV_FRAME_FLAG_KEY;
219− s->frame->pict_type = AV_PICTURE_TYPE_I;
220218 #if FF_API_PALETTE_HAS_CHANGED
221219 FF_DISABLE_DEPRECATION_WARNINGS
222220 s->frame->palette_has_changed = s->palette_has_changed;
tests/ref/fate/jv-demux+7−7
@@ -11,13 +11,13 @@ · 10 unmodified lines
1111 0, 0, 0, 1, 6, 0x000a0003
1212 1, 0, 0, 131072, 131072, 0x14c664d6
1313 0, 1, 1, 1, 773, 0x11802a51
14−0, 2, 2, 1, 12974, 0xc2e466b7
15−0, 3, 3, 1, 12200, 0x3c0eeb31
16−0, 4, 4, 1, 13339, 0x91d82488
17−0, 5, 5, 1, 13940, 0x064c350a
18−0, 6, 6, 1, 14418, 0x078d2dd2
19−0, 7, 7, 1, 14539, 0x145167ed
20−0, 8, 8, 1, 2552, 0xcf2b1db7, F=0x3
14+0, 2, 2, 1, 12974, 0xc2e466b7, F=0x0
15+0, 3, 3, 1, 12200, 0x3c0eeb31, F=0x0
16+0, 4, 4, 1, 13339, 0x91d82488, F=0x0
17+0, 5, 5, 1, 13940, 0x064c350a, F=0x0
18+0, 6, 6, 1, 14418, 0x078d2dd2, F=0x0
19+0, 7, 7, 1, 14539, 0x145167ed, F=0x0
20+0, 8, 8, 1, 2552, 0xcf2b1db7, F=0x2
2121 1, 131072, 131072, 1764, 1764, 0x30be734d
2222 1, 132836, 132836, 1764, 1764, 0xa4c873a7
2323 1, 134600, 134600, 1764, 1764, 0xd5f17443

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t