Merge remote-tracking branch 'qatar/master'
* qatar/master: lavf: make compute_pkt_fields2() return meaningful error values matroskadec: set timestamps for RealAudio packets. intelh263dec: aspect ratio processing fix. intelh263dec: fix "Strict H.263 compliance" file playback oss,sndio: simplify by using FFMIN. swscale: extract monowhite/black output from yuv2packed[12X]_c(). swscale: de-macro'ify RGB15/16/32 input functions. swscale: rearrange code. movdec: Add support for the 'wfex' atom. ffmpeg.c: Add a necessary const qualifier riff: Fix potential memleak. swscale: change 48bit RGB input macros to inline functions. swscale: change 9/10bit YUV input macros to inline functions. swscale: extract gray16 output functions from yuv2packed[12X](). swscale: use standard clipping functions. swscale: merge macros that are used only once. swscale: fix function declarations in swscale.c. swscale: fix function declaration keywords in x86/swscale_template.c. Conflicts: ffmpeg.c libavcodec/intelh263dec.c libswscale/swscale.c libswscale/x86/swscale_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
2ec77aae67
6 changed files with 908 additions and 615 deletions
|
|
@ -67,9 +67,9 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s)
|
|||
if (format < 6) {
|
||||
s->width = h263_format[format][0];
|
||||
s->height = h263_format[format][1];
|
||||
s->avctx->sample_aspect_ratio.num=12;s->avctx->sample_aspect_ratio.den=11;
|
||||
}
|
||||
else {
|
||||
s->avctx->sample_aspect_ratio.num = 12;
|
||||
s->avctx->sample_aspect_ratio.den = 11;
|
||||
} else {
|
||||
format = get_bits(&s->gb, 3);
|
||||
if(format == 0 || format == 7){
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Wrong Intel H263 format\n");
|
||||
|
|
@ -95,12 +95,11 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s)
|
|||
if(ar == 15){
|
||||
s->avctx->sample_aspect_ratio.num = get_bits(&s->gb, 8); // aspect ratio - width
|
||||
s->avctx->sample_aspect_ratio.den = get_bits(&s->gb, 8); // aspect ratio - height
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
s->avctx->sample_aspect_ratio = ff_h263_pixel_aspect[ar];
|
||||
}
|
||||
if(s->avctx->sample_aspect_ratio.num == 0)
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Invalid aspect ratio\n");
|
||||
if (s->avctx->sample_aspect_ratio.num == 0)
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Invalid aspect ratio.\n");
|
||||
}
|
||||
|
||||
s->chroma_qscale= s->qscale = get_bits(&s->gb, 5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue