[FFmpeg-devel] [PATCH 3/5] wtvenc: mux thumbnail picture
Paul B Mahol
onemda at gmail.com
Sun Dec 30 13:42:07 CET 2012
On 12/30/12, Peter Ross <pross at xvid.org> wrote:
> ---
> libavformat/wtvenc.c | 74
> ++++++++++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 69 insertions(+), 5 deletions(-)
>
> diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c
> index 304bd14..664f5fc 100644
> --- a/libavformat/wtvenc.c
> +++ b/libavformat/wtvenc.c
> @@ -378,6 +378,13 @@ static int write_header(AVFormatContext *s)
>
> for (i = 0; i < s->nb_streams; i++) {
> st = s->streams[i];
> + if ((st->disposition & AV_DISPOSITION_ATTACHED_PIC)) {
> + if (st->codec->codec_id != AV_CODEC_ID_MJPEG) {
> + av_log(s, AV_LOG_ERROR, "expecting JPEG thumbnail
> image\n");
> + return AVERROR(EDOM);
you mean EINVAL?
[...]
More information about the ffmpeg-devel
mailing list