History

avcodec/mpegvideo_dec: Remove obsolete current_picture_ptr reuse code

Obsolete since at least 74d623914f02aa79447df43a742efd0929dded04.

Andreas Rheinhardt committed 3 years ago

Commit da4cca51 parent 00e48e61 file · +0 −6Browse files

Unified · Split

libavcodec/mpegvideo_dec.c+0−6
@@ -325,18 +325,12 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 324 unmodified lines
325325 ff_mpeg_unref_picture(&s->last_picture);
326326 ff_mpeg_unref_picture(&s->next_picture);
327327
328− if (s->current_picture_ptr && !s->current_picture_ptr->f->buf[0]) {
329− // we already have an unused image
330− // (maybe it was set before reading the header)
331− pic = s->current_picture_ptr;
332− } else {
333328 idx = ff_find_unused_picture(s->avctx, s->picture, 0);
334329 if (idx < 0) {
335330 av_log(s->avctx, AV_LOG_ERROR, "no frame buffer available\n");
336331 return idx;
337332 }
338333 pic = &s->picture[idx];
339− }
340334
341335 pic->reference = 0;
342336 if (!s->droppable) {

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