[FFmpeg-devel] [PATCH] H.264, aspect ratios, Amd.1:2007 - table expansion
Ulrich Habel
espero7757
Tue Jul 17 00:12:37 CEST 2007
... sorry to disturb again,
just for your convenience - here I do an inline of the patch:
-- 8< --
Index: h264.c
===================================================================
--- h264.c (Revision 9707)
+++ h264.c (Arbeitskopie)
@@ -7323,7 +7323,7 @@
if( aspect_ratio_idc == EXTENDED_SAR ) {
sps->sar.num= get_bits(&s->gb, 16);
sps->sar.den= get_bits(&s->gb, 16);
- }else if(aspect_ratio_idc < 14){
+ }else if(aspect_ratio_idc < 17){
sps->sar= pixel_aspect[aspect_ratio_idc];
}else{
av_log(h->s.avctx, AV_LOG_ERROR, "illegal aspect ratio\n");
Index: h264data.h
===================================================================
--- h264data.h (Revision 9707)
+++ h264data.h (Arbeitskopie)
@@ -77,7 +77,7 @@
NAL_AUXILIARY_SLICE=19
};
-static const AVRational pixel_aspect[14]={
+static const AVRational pixel_aspect[17]={
{0, 1},
{1, 1},
{12, 11},
@@ -92,6 +92,9 @@
{15, 11},
{64, 33},
{160,99},
+ {4, 3},
+ {3, 2},
+ {2, 1},
};
static const uint8_t golomb_to_pict_type[5]=
-- 8< --
Greetings
Uli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Amd.1-2007_aspect-ratio.diff
Type: text/x-diff
Size: 985 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070717/f57702ea/attachment.diff>
More information about the ffmpeg-devel
mailing list