[FFmpeg-devel] [PATCH] lavu: add av_get_media_type_string() convenience function

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat Aug 20 12:46:25 CEST 2011

On date Saturday 2011-08-20 10:53:39 +0200, Nicolas George encoded:
> Le primidi 1er fructidor, an CCXIX, Stefano Sabatini a écrit :
> > +    case AVMEDIA_TYPE_ATTACHMENT: return "attachment";
> > +    default:                      return NULL;
> Wouldn't "unknown" be more practical than NULL?

But less flexible, for example in the case you want to return the
localized equivalent of "unknown".
FFmpeg = Furious & Faithful Marvellous Pitiless Entertaining Gymnast

More information about the ffmpeg-devel mailing list