diff options
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r-- | libavformat/wtv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c index bdccdb3b09..e8b6268db3 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -236,7 +236,7 @@ static AVIOContext * wtvfile_open_sector(int first_sector, uint64_t length, int return NULL; } - pb = av_alloc_put_byte(buffer, 1 << wf->sector_bits, 0, wf, + pb = avio_alloc_context(buffer, 1 << wf->sector_bits, 0, wf, wtvfile_read_packet, NULL, wtvfile_seek); if (!pb) { av_free(buffer); |