diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-05-23 21:06:14 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-25 15:20:25 +0200 |
commit | fb37d573473d615cc323635fa5bc58fe16d14ee4 (patch) | |
tree | cab89de13cdcfe42080edb698b06816dff323690 /libavformat/mpegts.c | |
parent | 17a5556db598ba1e5550d89ae3e339c1161a218a (diff) | |
download | ffmpeg-fb37d573473d615cc323635fa5bc58fe16d14ee4.tar.gz |
lavf: deprecate AVFormatParameters.mpeg2ts_raw.
It doesn't do anything except produce an error message when set.
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 20528c5bc4..7c0f3818d5 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1470,16 +1470,16 @@ static int mpegts_read_header(AVFormatContext *s, int len; int64_t pos; - if (ap) { #if FF_API_FORMAT_PARAMETERS + if (ap) { if (ap->mpeg2ts_compute_pcr) ts->mpeg2ts_compute_pcr = ap->mpeg2ts_compute_pcr; -#endif if(ap->mpeg2ts_raw){ av_log(s, AV_LOG_ERROR, "use mpegtsraw_demuxer!\n"); return -1; } } +#endif /* read the first 1024 bytes to get packet size */ pos = avio_tell(pb); |