[FFmpeg-devel] libavcodec : add psd image file decoder
James Almer
jamrial at gmail.com
Sat Jul 9 19:30:54 EEST 2016
On 7/9/2016 1:09 PM, James Almer wrote:
> On 7/9/2016 12:29 PM, Martin Vignali wrote:
>> +static int psd_probe(AVProbeData *p)
>> +{
>> + const uint8_t *b = p->buf;
>> +
>> + if (AV_RL32(b) == 1397768760)
>
> if (AV_RL32(b) == MKTAG('S','P','B','8'))
>
MKTAG('8','B','P','S'), sorry.
Also, this is mostly cosmetic, so if you prefer consistency write the
value in hex like in the other probe functions instead of using this
macro.
More information about the ffmpeg-devel
mailing list