diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-30 13:45:44 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-30 13:52:03 +0100 |
commit | cd37963684d8ee9819af15ccebe09d84839101dd (patch) | |
tree | 33c99132f79f095301b4e453c40f0b77005f5b1d /libavformat | |
parent | 60e957476e338a200501e0bdad40b7bf0076b268 (diff) | |
parent | 381dc1a5ec0925b281c573457c413ae643567086 (diff) | |
download | ffmpeg-cd37963684d8ee9819af15ccebe09d84839101dd.tar.gz |
Merge commit '381dc1a5ec0925b281c573457c413ae643567086'
* commit '381dc1a5ec0925b281c573457c413ae643567086':
fate: ac3: Place E-AC-3 tests and AC-3 tests in different groups
fate: Add shorthands for acodec PCM and ADPCM tests
avconv: Drop unused function argument from do_video_stats()
cmdutils: Conditionally compile libswscale-related bits
aacenc: Drop some unused function arguments
rtsp: Avoid a cast when calling strtol
nut: support textual data
nutenc: verbosely report unsupported negative pts
Conflicts:
cmdutils.c
ffmpeg.c
libavformat/nut.c
libavformat/nutenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/nut.c | 7 | ||||
-rw-r--r-- | libavformat/nut.h | 1 | ||||
-rw-r--r-- | libavformat/nutdec.c | 1 | ||||
-rw-r--r-- | libavformat/nutenc.c | 4 | ||||
-rw-r--r-- | libavformat/rtsp.c | 4 |
5 files changed, 14 insertions, 3 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index 51e4d38394..eaf32e73c5 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -34,6 +34,11 @@ const AVCodecTag ff_nut_subtitle_tags[] = { { AV_CODEC_ID_NONE , 0 } }; +const AVCodecTag ff_nut_data_tags[] = { + { AV_CODEC_ID_TEXT , MKTAG('U', 'T', 'F', '8') }, + { AV_CODEC_ID_NONE , 0 } +}; + const AVCodecTag ff_nut_video_tags[] = { { AV_CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 15 ) }, { AV_CODEC_ID_RAWVIDEO, MKTAG('B', 'G', 'R', 15 ) }, @@ -140,7 +145,7 @@ const AVCodecTag ff_nut_audio_tags[] = { const AVCodecTag * const ff_nut_codec_tags[] = { ff_nut_video_tags, ff_nut_subtitle_tags, - ff_codec_bmp_tags, ff_codec_wav_tags, ff_nut_audio_tags, 0 + ff_codec_bmp_tags, ff_codec_wav_tags, ff_nut_audio_tags, ff_nut_data_tags, 0 }; void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val){ diff --git a/libavformat/nut.h b/libavformat/nut.h index 673f12f4b2..deb3c901e3 100644 --- a/libavformat/nut.h +++ b/libavformat/nut.h @@ -110,6 +110,7 @@ typedef struct NUTContext { extern const AVCodecTag ff_nut_subtitle_tags[]; extern const AVCodecTag ff_nut_video_tags[]; extern const AVCodecTag ff_nut_audio_tags[]; +extern const AVCodecTag ff_nut_data_tags[]; extern const AVCodecTag * const ff_nut_codec_tags[]; diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 1ba79ebcbf..9954583fc2 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -382,6 +382,7 @@ static int decode_stream_header(NUTContext *nut) break; case 3: st->codec->codec_type = AVMEDIA_TYPE_DATA; + st->codec->codec_id = ff_codec_get_id(ff_nut_data_tags, tmp); break; default: av_log(s, AV_LOG_ERROR, "unknown stream class (%d)\n", class); diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 08c049ab34..72e28b8d26 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -812,7 +812,9 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt) int ret; if (pkt->pts < 0) { - av_log(s, AV_LOG_ERROR, "Invalid negative packet pts %"PRId64" in input\n", pkt->pts); + av_log(s, AV_LOG_ERROR, + "Negative pts not supported stream %d, pts %"PRId64"\n", + pkt->stream_index, pkt->pts); return AVERROR(EINVAL); } diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index ec9634f9d2..201938c0a5 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -766,8 +766,10 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p) th->lower_transport = RTSP_LOWER_TRANSPORT_UDP_MULTICAST; } else if (!strcmp(parameter, "ttl")) { if (*p == '=') { + char *end; p++; - th->ttl = strtol(p, (char **)&p, 10); + th->ttl = strtol(p, &end, 10); + p = end; } } else if (!strcmp(parameter, "destination")) { if (*p == '=') { |