On 04/12/11 16:33, Ronald S. Bultje wrote:
Hi,On Sun, Dec 4, 2011 at 6:56 AM, Luca Barbato<[email protected]> wrote:--- libavformat/nut.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libavformat/nut.c b/libavformat/nut.c index d192bb4..587dc2e 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -70,6 +70,12 @@ const AVCodecTag ff_nut_video_tags[] = { { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', 48 ) }, { CODEC_ID_RAWVIDEO, MKTAG(48 , 'B', 'G', 'R') }, { CODEC_ID_RAWVIDEO, MKTAG(48 , 'R', 'G', 'B') }, + { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 11 , 10 ) }, + { CODEC_ID_RAWVIDEO, MKTAG(10 , 11 , '3', 'Y') }, + { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 10 , 10 ) }, + { CODEC_ID_RAWVIDEO, MKTAG(10 , 10 , '3', 'Y') }, + { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 0 , 10 ) }, + { CODEC_ID_RAWVIDEO, MKTAG(10 , 0 , '3', 'Y') }, { CODEC_ID_RAWVIDEO, MKTAG('Y', '1', 0 , 16 ) }, { CODEC_ID_RAWVIDEO, MKTAG(16 , 0 , '1', 'Y') }, { CODEC_ID_RAWVIDEO, MKTAG('Y', '3', 11 , 16 ) },This is probably OK if NUT documents these fourccs to be correct somewhere.
They aren't used in the actual file/stream as fourccs, but our convoluted system for rawvideo requires them:
- rawenc creates the codec_tag from the pixel format.- nutenc uses the codec_tag to generate extradata for the stream if the codec_id is rawvideo.
- nutdec provides the information as extradata - rawdec uses the extradata to set the pixel format.In between in utils.c we have a check that triggers if the codec tag isn't present in the list supported by the format.
I'll clean up this mess once I'm sure nothing else relies on that. lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
