summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-11 22:29:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-11 22:30:49 +0200
commit67911cc57bbe2958fe62ca092b0e43438cd0ba52 (patch)
tree873398d40e59e3d2cf6b895ecadcc24d6c388a6a /libavcodec/mpegvideo.c
parent67d29da4bd23057a1f646568442a77b844cb2d1b (diff)
parent0ddc53dabbc6f636d062b187ea27934610aaad30 (diff)
Merge commit '0ddc53dabbc6f636d062b187ea27934610aaad30'
* commit '0ddc53dabbc6f636d062b187ea27934610aaad30': mpegvideo: synchronize AVFrame pointers in ERContext fully Conflicts: libavcodec/mpegvideo.c See: 8ef9dcf1d74aea55bf39f1e479fe67e98d973954 Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index af491b93f7..b8096cc094 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -3231,8 +3231,11 @@ void ff_mpeg_set_erpic(ERPicture *dst, Picture *src)
int i;
memset(dst, 0, sizeof(*dst));
- if (!src)
+ if (!src) {
+ dst->f = NULL;
+ dst->tf = NULL;
return;
+ }
dst->f = src->f;
dst->tf = &src->tf;