Mercurial > libavformat.hg
comparison pva.c @ 2896:b6d3640bedeb libavformat
change audio codec id to mp2
author | ivo |
---|---|
date | Sat, 05 Jan 2008 22:15:19 +0000 |
parents | 54e2afeca044 |
children | 6d6dfee21471 |
comparison
equal
deleted
inserted
replaced
2895:54e2afeca044 | 2896:b6d3640bedeb |
---|---|
50 av_set_pts_info(st, 32, 1, 90000); | 50 av_set_pts_info(st, 32, 1, 90000); |
51 | 51 |
52 if (!(st = av_new_stream(s, 1))) | 52 if (!(st = av_new_stream(s, 1))) |
53 return AVERROR(ENOMEM); | 53 return AVERROR(ENOMEM); |
54 st->codec->codec_type = CODEC_TYPE_AUDIO; | 54 st->codec->codec_type = CODEC_TYPE_AUDIO; |
55 st->codec->codec_id = CODEC_ID_MP3; | 55 st->codec->codec_id = CODEC_ID_MP2; |
56 st->need_parsing = AVSTREAM_PARSE_HEADERS; | 56 st->need_parsing = AVSTREAM_PARSE_HEADERS; |
57 av_set_pts_info(st, 33, 1, 90000); | 57 av_set_pts_info(st, 33, 1, 90000); |
58 | 58 |
59 /* the parameters will be extracted from the compressed bitstream */ | 59 /* the parameters will be extracted from the compressed bitstream */ |
60 return 0; | 60 return 0; |