comparison swf.c @ 1865:eef72288a33e libavformat

use AVFormatContext with av_log
author bcoudurier
date Mon, 05 Mar 2007 10:07:42 +0000
parents 481b69e29b89
children 58f48e9350af
comparison
equal deleted inserted replaced
1864:481b69e29b89 1865:eef72288a33e
265 av_log(s, AV_LOG_ERROR, "audio frame size not set\n"); 265 av_log(s, AV_LOG_ERROR, "audio frame size not set\n");
266 return -1; 266 return -1;
267 } 267 }
268 audio_enc = enc; 268 audio_enc = enc;
269 } else { 269 } else {
270 av_log(enc, AV_LOG_ERROR, "SWF muxer only supports MP3\n"); 270 av_log(s, AV_LOG_ERROR, "SWF muxer only supports MP3\n");
271 return -1; 271 return -1;
272 } 272 }
273 } else { 273 } else {
274 if ( enc->codec_id == CODEC_ID_VP6F || 274 if ( enc->codec_id == CODEC_ID_VP6F ||
275 enc->codec_id == CODEC_ID_FLV1 || 275 enc->codec_id == CODEC_ID_FLV1 ||
276 enc->codec_id == CODEC_ID_MJPEG ) { 276 enc->codec_id == CODEC_ID_MJPEG ) {
277 video_enc = enc; 277 video_enc = enc;
278 } else { 278 } else {
279 av_log(enc, AV_LOG_ERROR, "SWF muxer only supports VP6, FLV1 and MJPEG\n"); 279 av_log(s, AV_LOG_ERROR, "SWF muxer only supports VP6, FLV1 and MJPEG\n");
280 return -1; 280 return -1;
281 } 281 }
282 } 282 }
283 } 283 }
284 284