Mercurial > libavformat.hg
comparison gif.c @ 2274:b21c2af60bc9 libavformat
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
author | takis |
---|---|
date | Thu, 19 Jul 2007 15:23:32 +0000 |
parents | 74cb68ad9dce |
children | d52c718e83f9 |
comparison
equal
deleted
inserted
replaced
2273:7eb456c4ed8a | 2274:b21c2af60bc9 |
---|---|
341 // rate = video_enc->time_base.den; | 341 // rate = video_enc->time_base.den; |
342 } | 342 } |
343 | 343 |
344 if (video_enc->pix_fmt != PIX_FMT_RGB24) { | 344 if (video_enc->pix_fmt != PIX_FMT_RGB24) { |
345 av_log(s, AV_LOG_ERROR, "ERROR: gif only handles the rgb24 pixel format. Use -pix_fmt rgb24.\n"); | 345 av_log(s, AV_LOG_ERROR, "ERROR: gif only handles the rgb24 pixel format. Use -pix_fmt rgb24.\n"); |
346 return AVERROR_IO; | 346 return AVERROR(EIO); |
347 } | 347 } |
348 | 348 |
349 gif_image_write_header(pb, width, height, loop_count, NULL); | 349 gif_image_write_header(pb, width, height, loop_count, NULL); |
350 | 350 |
351 put_flush_packet(&s->pb); | 351 put_flush_packet(&s->pb); |