summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-04-22 21:02:18 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-04-22 21:02:18 +0000
commitd697b89baba6df9b72d8c03dfdd5952fb05e2b6a (patch)
tree9c18c8313b8de3512a1a0ab6530e98fcf1e76f22 /libavcodec/mpegvideo.c
parent5751432312d00b707df88d6cda700d76add2b91c (diff)
segfault fix
Originally committed as revision 418 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index ec1c0f9f05..c1a2cf746a 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -645,6 +645,7 @@ void reorder_input(MpegEncContext *s, AVPicture *pict)
s->coded_order[j]= s->coded_order[j+1];
}
s->coded_order[j].picture[0]= s->coded_order[j].picture[1]= s->coded_order[j].picture[2]= NULL; //catch uninitalized buffers
+ s->coded_order[j].pict_type=0;
switch(s->input_pict_type){
default: