You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/huffyuvenc: Avoid pointless indirections
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -348,7 +348,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
|||||||
avctx->extradata[2] |= 4;
|
avctx->extradata[2] |= 4;
|
||||||
avctx->extradata[3] = 1;
|
avctx->extradata[3] = 1;
|
||||||
}
|
}
|
||||||
s->avctx->extradata_size = 4;
|
avctx->extradata_size = 4;
|
||||||
|
|
||||||
if (avctx->stats_in) {
|
if (avctx->stats_in) {
|
||||||
char *p = avctx->stats_in;
|
char *p = avctx->stats_in;
|
||||||
@@ -378,10 +378,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = store_huffman_tables(s, s->avctx->extradata + s->avctx->extradata_size);
|
ret = store_huffman_tables(s, avctx->extradata + avctx->extradata_size);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
s->avctx->extradata_size += ret;
|
avctx->extradata_size += ret;
|
||||||
|
|
||||||
if (s->context) {
|
if (s->context) {
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
|
Reference in New Issue
Block a user