summaryrefslogtreecommitdiff
path: root/libavcodec/flvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-24 18:44:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-24 18:59:58 +0200
commit7495186fd49f6c9e701e387c2669e3f39b8900ab (patch)
tree41333941d0b3cfc01c50538753156f532292a9cf /libavcodec/flvdec.c
parent6067186f3a76691bc2c825c40312dc12a7483c0e (diff)
avcodec/h263dec: fix aspect of lead h263 EHC
Fixes part of ticket925 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flvdec.c')
-rw-r--r--libavcodec/flvdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/flvdec.c b/libavcodec/flvdec.c
index bb693d76c6..36e53c5dd0 100644
--- a/libavcodec/flvdec.c
+++ b/libavcodec/flvdec.c
@@ -107,6 +107,9 @@ int ff_flv_decode_picture_header(MpegEncContext *s)
}
s->f_code = 1;
+ if (s->ehc_mode)
+ s->avctx->sample_aspect_ratio= (AVRational){1,2};
+
if(s->avctx->debug & FF_DEBUG_PICT_INFO){
av_log(s->avctx, AV_LOG_DEBUG, "%c esc_type:%d, qp:%d num:%d\n",
s->droppable ? 'D' : av_get_picture_type_char(s->pict_type),