]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/dxa.c
lavc: schedule FF_BUG_AC_VLC for removal on the next major bump.
[ffmpeg] / libavformat / dxa.c
index 13d206046579cd44ba9ede9dea752bd05200eaba..a1b85fe887c9830cc4e3821976fc32453b65fe97 100644 (file)
@@ -107,6 +107,8 @@ static int dxa_read_header(AVFormatContext *s)
         ret = ff_get_wav_header(pb, ast->codec, fsize);
         if (ret < 0)
             return ret;
+        if (ast->codec->sample_rate > 0)
+            avpriv_set_pts_info(ast, 64, 1, ast->codec->sample_rate);
         // find 'data' chunk
         while(avio_tell(pb) < c->vidpos && !pb->eof_reached){
             tag = avio_rl32(pb);
@@ -124,7 +126,7 @@ static int dxa_read_header(AVFormatContext *s)
 
     /* now we are ready: build format streams */
     st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
-    st->codec->codec_id   = CODEC_ID_DXA;
+    st->codec->codec_id   = AV_CODEC_ID_DXA;
     st->codec->width      = w;
     st->codec->height     = h;
     av_reduce(&den, &num, den, num, (1UL<<31)-1);