Browse Source

Merge commit '3562684db716d11de0b0dcc52748e9cd90d68132'

* commit '3562684db716d11de0b0dcc52748e9cd90d68132':
  ogg: Always alloc the private context in vorbis_header

Conflicts:
	libavformat/oggparsevorbis.c

See: 18b46a494e
Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
070c22d53a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavformat/oggparsevorbis.c

+ 3
- 3
libavformat/oggparsevorbis.c View File

@@ -237,15 +237,15 @@ vorbis_header (AVFormatContext * s, int idx)
struct oggvorbis_private *priv;
int pkt_type = os->buf[os->pstart];

if (!(pkt_type & 1))
return os->private ? 0 : -1;

if (!os->private) {
os->private = av_mallocz(sizeof(struct oggvorbis_private));
if (!os->private)
return -1;
}

if (!(pkt_type & 1))
return 0;

if (os->psize < 1 || pkt_type > 5)
return -1;



Loading…
Cancel
Save