comparison nuv.c @ 2537:46fc89be5b52 libavformat

Do not set codec_tag when the container does not specify it.
author reimar
date Sun, 09 Sep 2007 09:21:14 +0000
parents fb7c72af3a61
children 937b5d76c3dd
comparison
equal deleted inserted replaced
2536:fb7c72af3a61 2537:46fc89be5b52
147 if (v_packs) { 147 if (v_packs) {
148 ctx->v_id = stream_nr++; 148 ctx->v_id = stream_nr++;
149 vst = av_new_stream(s, ctx->v_id); 149 vst = av_new_stream(s, ctx->v_id);
150 vst->codec->codec_type = CODEC_TYPE_VIDEO; 150 vst->codec->codec_type = CODEC_TYPE_VIDEO;
151 vst->codec->codec_id = CODEC_ID_NUV; 151 vst->codec->codec_id = CODEC_ID_NUV;
152 vst->codec->codec_tag = MKTAG('R', 'J', 'P', 'G');
153 vst->codec->width = width; 152 vst->codec->width = width;
154 vst->codec->height = height; 153 vst->codec->height = height;
155 vst->codec->bits_per_sample = 10; 154 vst->codec->bits_per_sample = 10;
156 vst->codec->sample_aspect_ratio = av_d2q(aspect, 10000); 155 vst->codec->sample_aspect_ratio = av_d2q(aspect, 10000);
157 vst->r_frame_rate = av_d2q(fps, 60000); 156 vst->r_frame_rate = av_d2q(fps, 60000);