comparison mpeg.c @ 3967:4fd67f05bad9 libavformat

Use enum typers instead of int. Patch by Diego 'Flameeyes' Petten: flameeyes gmail
author benoit
date Thu, 02 Oct 2008 16:03:00 +0000
parents 1d3d17de20ba
children 77e0c7511d41
comparison
equal deleted inserted replaced
3966:4a3372240319 3967:4fd67f05bad9
407 static int mpegps_read_packet(AVFormatContext *s, 407 static int mpegps_read_packet(AVFormatContext *s,
408 AVPacket *pkt) 408 AVPacket *pkt)
409 { 409 {
410 MpegDemuxContext *m = s->priv_data; 410 MpegDemuxContext *m = s->priv_data;
411 AVStream *st; 411 AVStream *st;
412 int len, startcode, i, type, codec_id = 0, es_type; 412 int len, startcode, i, es_type;
413 enum CodecID codec_id = CODEC_ID_NONE;
414 enum CodecType type;
413 int64_t pts, dts, dummy_pos; //dummy_pos is needed for the index building to work 415 int64_t pts, dts, dummy_pos; //dummy_pos is needed for the index building to work
414 416
415 redo: 417 redo:
416 len = mpegps_read_pes_header(s, &dummy_pos, &startcode, &pts, &dts); 418 len = mpegps_read_pes_header(s, &dummy_pos, &startcode, &pts, &dts);
417 if (len < 0) 419 if (len < 0)