You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
h264: simplify code in flush_dpb()
There is no point in clearing reference explicitly, since that will be done as a part of ff_h264_unref_picture() right below.
This commit is contained in:
@@ -1075,11 +1075,7 @@ static void flush_dpb(AVCodecContext *avctx)
|
|||||||
H264Context *h = avctx->priv_data;
|
H264Context *h = avctx->priv_data;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++) {
|
memset(h->delayed_pic, 0, sizeof(h->delayed_pic));
|
||||||
if (h->delayed_pic[i])
|
|
||||||
h->delayed_pic[i]->reference = 0;
|
|
||||||
h->delayed_pic[i] = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
ff_h264_flush_change(h);
|
ff_h264_flush_change(h);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user