mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-13 21:26:33 +02:00
Add missing initialization for AVProbeData.
This has become necessary since the new mime field was added. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
9a162146ca
commit
2c0454cd20
@ -308,7 +308,7 @@ int ff_img_read_header(AVFormatContext *s1)
|
|||||||
int probe_buffer_size = 2048;
|
int probe_buffer_size = 2048;
|
||||||
uint8_t *probe_buffer = av_realloc(NULL, probe_buffer_size + AVPROBE_PADDING_SIZE);
|
uint8_t *probe_buffer = av_realloc(NULL, probe_buffer_size + AVPROBE_PADDING_SIZE);
|
||||||
AVInputFormat *fmt = NULL;
|
AVInputFormat *fmt = NULL;
|
||||||
AVProbeData pd;
|
AVProbeData pd = { 0 };
|
||||||
|
|
||||||
if (!probe_buffer)
|
if (!probe_buffer)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
@ -78,7 +78,7 @@ static void print_times(void)
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
unsigned int p, i, type, size, retry;
|
unsigned int p, i, type, size, retry;
|
||||||
AVProbeData pd;
|
AVProbeData pd = { 0 };
|
||||||
AVLFG state;
|
AVLFG state;
|
||||||
PutBitContext pb;
|
PutBitContext pb;
|
||||||
int retry_count= 4097;
|
int retry_count= 4097;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user