]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/bktr.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavdevice / bktr.c
index b16adc9f6e25142b4c4ac74783a76c11d35f506c..6e3970128fc0f78a8561a85d0e64c88b78f972b2 100644 (file)
@@ -24,6 +24,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavformat/internal.h"
 #include "libavutil/log.h"
 #include "libavutil/opt.h"
 #include "libavutil/parseutils.h"
@@ -46,7 +47,6 @@
 #include <sys/time.h>
 #include <signal.h>
 #include <stdint.h>
-#include <strings.h>
 #include "avdevice.h"
 
 typedef struct {
@@ -271,12 +271,12 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
         goto out;
     }
 
-    st = av_new_stream(s1, 0);
+    st = avformat_new_stream(s1, NULL);
     if (!st) {
         ret = AVERROR(ENOMEM);
         goto out;
     }
-    av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in use */
+    avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in use */
 
     s->width = width;
     s->height = height;