]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/pcm.c
Merge commit 'f8c01257f93ceda3e03bc4e540a51022d1e2bff2'
[ffmpeg] / libavformat / pcm.c
index a57a4b6249371d79233c044b7646cf922efd8b8a..f62075fc82ee6c3864635cb0b8f8e7854c8bee38 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "libavutil/mathematics.h"
 #include "avformat.h"
+#include "internal.h"
 #include "pcm.h"
 
 #define RAW_SAMPLES     1024
@@ -68,7 +69,7 @@ int ff_pcm_read_seek(AVFormatContext *s,
 
     /* recompute exact position */
     st->cur_dts = av_rescale(pos, st->time_base.den, byte_rate * (int64_t)st->time_base.num);
-    if ((ret = avio_seek(s->pb, pos + s->data_offset, SEEK_SET)) < 0)
+    if ((ret = avio_seek(s->pb, pos + s->internal->data_offset, SEEK_SET)) < 0)
         return ret;
     return 0;
 }