comparison h263dec.c @ 1353:cfc80b3a4ada libavcodec

flash video (flv) support patch by (Garrick Meeker <gmeeker at theoryllc dot com>)
author michaelni
date Wed, 09 Jul 2003 23:10:59 +0000
parents e0e5483c32c5
children 80067f8d6770
comparison
equal deleted inserted replaced
1352:e8ff4783f188 1353:cfc80b3a4ada
94 s->msmpeg4_version=5; 94 s->msmpeg4_version=5;
95 break; 95 break;
96 case CODEC_ID_H263I: 96 case CODEC_ID_H263I:
97 s->h263_intel = 1; 97 s->h263_intel = 1;
98 break; 98 break;
99 case CODEC_ID_FLV1:
100 s->h263_flv = 1;
101 break;
99 default: 102 default:
100 return -1; 103 return -1;
101 } 104 }
102 s->codec_id= avctx->codec->id; 105 s->codec_id= avctx->codec->id;
103 106
449 452
450 if(s->flags& CODEC_FLAG_LOW_DELAY) 453 if(s->flags& CODEC_FLAG_LOW_DELAY)
451 s->low_delay=1; 454 s->low_delay=1;
452 } else if (s->h263_intel) { 455 } else if (s->h263_intel) {
453 ret = intel_h263_decode_picture_header(s); 456 ret = intel_h263_decode_picture_header(s);
457 } else if (s->h263_flv) {
458 ret = flv_h263_decode_picture_header(s);
454 } else { 459 } else {
455 ret = h263_decode_picture_header(s); 460 ret = h263_decode_picture_header(s);
456 } 461 }
457 avctx->has_b_frames= !s->low_delay; 462 avctx->has_b_frames= !s->low_delay;
458 463
791 ff_h263_decode_frame, 796 ff_h263_decode_frame,
792 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, 797 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
793 mpeg4_decoptions, 798 mpeg4_decoptions,
794 }; 799 };
795 800
801 AVCodec flv_decoder = {
802 "flv",
803 CODEC_TYPE_VIDEO,
804 CODEC_ID_FLV1,
805 sizeof(MpegEncContext),
806 ff_h263_decode_init,
807 NULL,
808 ff_h263_decode_end,
809 ff_h263_decode_frame,
810 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1
811 };