summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-06-21 03:58:57 +0000
committerMike Melanson <mike@multimedia.cx>2003-06-21 03:58:57 +0000
commit2a06f90f75f6e99af8b39d41e78dc6f6850fe68d (patch)
treee215f9e2dbfef6eea251880179c3f73c6765f489 /src/libffmpeg/libavcodec/mpeg12.c
parent7ec65b9aeaded392195543631da79bcf912382ab (diff)
downloadxine-lib-2a06f90f75f6e99af8b39d41e78dc6f6850fe68d.tar.gz
xine-lib-2a06f90f75f6e99af8b39d41e78dc6f6850fe68d.tar.bz2
major purpose of this update is to import the rearranged MC edge
emulation facilities CVS patchset: 5079 CVS date: 2003/06/21 03:58:57
Diffstat (limited to 'src/libffmpeg/libavcodec/mpeg12.c')
-rw-r--r--src/libffmpeg/libavcodec/mpeg12.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libffmpeg/libavcodec/mpeg12.c b/src/libffmpeg/libavcodec/mpeg12.c
index c31a711c7..c68f8d8a0 100644
--- a/src/libffmpeg/libavcodec/mpeg12.c
+++ b/src/libffmpeg/libavcodec/mpeg12.c
@@ -1990,6 +1990,9 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
Mpeg1Context *s1 = avctx->priv_data;
MpegEncContext *s = &s1->mpeg_enc_ctx;
+ if (!s1->mpeg_enc_ctx_allocated)
+ return 0;
+
/* end of slice reached */
if (/*s->mb_y<<field_pic == s->mb_height &&*/ !s->first_field) {
/* end of image */