mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avformat/rtpdec_rfc4175: support for yuv420p format
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
3399bbab4d
commit
05b0c66313
@ -63,6 +63,17 @@ static int rfc4175_parse_format(AVStream *stream, PayloadContext *data)
|
||||
} else {
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
} else if (!strncmp(data->sampling, "YCbCr-4:2:0", 11)) {
|
||||
tag = MKTAG('I', '4', '2', '0');
|
||||
data->xinc = 4;
|
||||
|
||||
if (data->depth == 8) {
|
||||
data->pgroup = 6;
|
||||
pixfmt = AV_PIX_FMT_YUV420P;
|
||||
stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
|
||||
} else {
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
} else {
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user