aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-04 18:08:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-07 12:43:06 +0200
commit6496cbee695bbe834bcaffc0e9375d93ff77eeda (patch)
treee58b92d4be4c5fc8b3cdfb8a736cdb3974a2a8cc
parent5b4e58ed4c3641a934b46b6e3063b4b2d5fc8bed (diff)
downloadffmpeg-6496cbee695bbe834bcaffc0e9375d93ff77eeda.tar.gz
avcodec/h264_refs: Do not set reference to things which dont exist
Fixes deadlock Fixes Ticket4428 Fixes Ticket4429 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 429de043202286a2b5bcc082cc02de860b734db2) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h264_refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index 1cd8a6dfda..b08828c232 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -703,7 +703,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count)
*/
if (h->short_ref_count && h->short_ref[0] == h->cur_pic_ptr) {
/* Just mark the second field valid */
- h->cur_pic_ptr->reference = PICT_FRAME;
+ h->cur_pic_ptr->reference |= h->picture_structure;
} else if (h->cur_pic_ptr->long_ref) {
av_log(h->avctx, AV_LOG_ERROR, "illegal short term reference "
"assignment for second field "