summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_rfc4175.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-11-10 19:35:47 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-11-25 15:04:35 +0800
commit3399bbab4dcfb8dec3bb1dd238816908791118f3 (patch)
treec307d18152aaa9e7041da3d8e300638883b5d994 /libavformat/rtpdec_rfc4175.c
parent1a5930b55494b5d598c618283b24f12ad1ac38a2 (diff)
downloadffmpeg-3399bbab4dcfb8dec3bb1dd238816908791118f3.tar.gz
avformat/rtpdec_rfc4175: use rawvideo for uyvy422
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtpdec_rfc4175.c')
-rw-r--r--libavformat/rtpdec_rfc4175.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c
index f50cad76d2..f13736bc3c 100644
--- a/libavformat/rtpdec_rfc4175.c
+++ b/libavformat/rtpdec_rfc4175.c
@@ -55,9 +55,11 @@ static int rfc4175_parse_format(AVStream *stream, PayloadContext *data)
if (data->depth == 8) {
data->pgroup = 4;
pixfmt = AV_PIX_FMT_UYVY422;
+ stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
} else if (data->depth == 10) {
data->pgroup = 5;
pixfmt = AV_PIX_FMT_YUV422P10;
+ stream->codecpar->codec_id = AV_CODEC_ID_BITPACKED;
} else {
return AVERROR_INVALIDDATA;
}
@@ -268,7 +270,7 @@ static int rfc4175_handle_packet(AVFormatContext *ctx, PayloadContext *data,
const RTPDynamicProtocolHandler ff_rfc4175_rtp_handler = {
.enc_name = "raw",
.codec_type = AVMEDIA_TYPE_VIDEO,
- .codec_id = AV_CODEC_ID_BITPACKED,
+ .codec_id = AV_CODEC_ID_NONE,
.priv_data_size = sizeof(PayloadContext),
.parse_sdp_a_line = rfc4175_parse_sdp_line,
.parse_packet = rfc4175_handle_packet,