mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-07 14:45:29 +01:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: (22 commits) configure: add check for w32threads to enable it automatically rtmp: do not hardcode invoke numbers cinepack: return non-generic errors fate-lavf-ts: use -mpegts_transport_stream_id option. Add an APIchanges entry and a minor bump for avio changes. avio: Mark the old interrupt callback mechanism as deprecated avplay: Set the new interrupt callback avconv: Set new interrupt callbacks for all AVFormatContexts, use avio_open2() everywhere cinepak: remove redundant coordinate checks cinepak: check strip_size cinepak, simplify, use AV_RB24() cinepak: simplify, use FFMIN() cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0 applehttp: Fix seeking in streams not starting at DTS=0 http: Don't use the normal http proxy mechanism for https tls: Handle connection via a http proxy http: Reorder two code blocks http: Add a new protocol for opening connections via http proxies http: Split out the non-chunked buffer reading part from http_read segafilm: add support for raw videos ... Conflicts: avconv.c configure doc/APIchanges libavcodec/cinepak.c libavformat/applehttp.c libavformat/version.h tests/lavf-regression.sh tests/ref/lavf/ts Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#define FDSC_TAG MKBETAG('F', 'D', 'S', 'C')
|
||||
#define STAB_TAG MKBETAG('S', 'T', 'A', 'B')
|
||||
#define CVID_TAG MKBETAG('c', 'v', 'i', 'd')
|
||||
#define RAW_TAG MKBETAG('r', 'a', 'w', ' ')
|
||||
|
||||
typedef struct {
|
||||
int stream;
|
||||
@@ -129,8 +130,11 @@ static int film_read_header(AVFormatContext *s,
|
||||
|
||||
if (AV_RB32(&scratch[8]) == CVID_TAG) {
|
||||
film->video_type = CODEC_ID_CINEPAK;
|
||||
} else
|
||||
} else if (AV_RB32(&scratch[8]) == RAW_TAG) {
|
||||
film->video_type = CODEC_ID_RAWVIDEO;
|
||||
} else {
|
||||
film->video_type = CODEC_ID_NONE;
|
||||
}
|
||||
|
||||
/* initialize the decoder streams */
|
||||
if (film->video_type) {
|
||||
@@ -143,6 +147,15 @@ static int film_read_header(AVFormatContext *s,
|
||||
st->codec->codec_tag = 0; /* no fourcc */
|
||||
st->codec->width = AV_RB32(&scratch[16]);
|
||||
st->codec->height = AV_RB32(&scratch[12]);
|
||||
|
||||
if (film->video_type == CODEC_ID_RAWVIDEO) {
|
||||
if (scratch[20] == 24) {
|
||||
st->codec->pix_fmt = PIX_FMT_RGB24;
|
||||
} else {
|
||||
av_log(s, AV_LOG_ERROR, "raw video is using unhandled %dbpp\n", scratch[20]);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (film->audio_type) {
|
||||
|
||||
Reference in New Issue
Block a user