History

Merge commit '598ce4ab4f1893e0661fc038101487e511937877'

* commit '598ce4ab4f1893e0661fc038101487e511937877': h264: call av_frame_unref() instead of avcodec_get_frame_defaults(). Conflicts: libavcodec/h264.c

Michael Niedermayer committed 12 years ago

Commit e3578fd2 parents 525a7d9 598ce4a1 file · +3 −3Browse files

Unified · Split

libavcodec/h264.c+3−3
@@ -1379,8 +1379,8 @@ int ff_h264_alloc_tables(H264Context *h) · 1378 unmodified lines
13791379 if (!h->DPB)
13801380 return AVERROR(ENOMEM);
13811381 for (i = 0; i < MAX_PICTURE_COUNT; i++)
1382− avcodec_get_frame_defaults(&h->DPB[i].f);
1383− avcodec_get_frame_defaults(&h->cur_pic.f);
1382+ av_frame_unref(&h->DPB[i].f);
1383+ av_frame_unref(&h->cur_pic.f);
13841384 }
13851385
13861386 return 0;
@@ -1815,7 +1815,7 @@ static int decode_update_thread_context(AVCodecContext *dst, · 428 unmodified lines
18151815 h->context_initialized = 0;
18161816
18171817 memset(&h->cur_pic, 0, sizeof(h->cur_pic));
1818− avcodec_get_frame_defaults(&h->cur_pic.f);
1818+ av_frame_unref(&h->cur_pic.f);
18191819 h->cur_pic.tf.f = &h->cur_pic.f;
18201820
18211821 ret = ff_h264_alloc_tables(h);

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