History

avcodec/flvenc: Remove redundant setting of dc_scale_tables

h263_aic is always zero for FLV and ff_mpeg1_dc_scale_table is already the default dc_scale table for both y and c. h263_aic is also always zero for the FLV decoder.

Andreas Rheinhardt committed 1 year ago

Commit 17ff4421 parent 9e5a1b81 file · +0 −10Browse files

Unified · Split

libavcodec/flvenc.c+0−10
@@ -20,9 +20,7 @@ · 19 unmodified lines
2020
2121 #include "codec_internal.h"
2222 #include "flvenc.h"
23−#include "h263data.h"
2423 #include "mpegvideo.h"
25−#include "mpegvideodata.h"
2624 #include "mpegvideoenc.h"
2725
2826 void ff_flv_encode_picture_header(MpegEncContext *s)
@@ -63,14 +61,6 @@ void ff_flv_encode_picture_header(MpegEncContext *s) · 34 unmodified lines
6361 put_bits(&s->pb, 1, 1); /* DeblockingFlag: on */
6462 put_bits(&s->pb, 5, s->qscale); /* Quantizer */
6563 put_bits(&s->pb, 1, 0); /* ExtraInformation */
66−
67− if (s->h263_aic) {
68− s->y_dc_scale_table =
69− s->c_dc_scale_table = ff_aic_dc_scale_table;
70− } else {
71− s->y_dc_scale_table =
72− s->c_dc_scale_table = ff_mpeg1_dc_scale_table;
73− }
7464 }
7565
7666 void ff_flv2_encode_ac_esc(PutBitContext *pb, int slevel, int level,

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