]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/supenc.c
doc/APIchanges: add hashes and version numbers for recent entries
[ffmpeg] / libavformat / supenc.c
index f5f6b58c87f4ae82234e0b6329089b02ce31648c..1ca19fa16143ce0494430cd367412f88b8cf0246 100644 (file)
@@ -32,10 +32,10 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
     uint32_t pts = 0, dts = 0;
 
     if (pkt->pts != AV_NOPTS_VALUE) {
-        pts = (uint32_t)pkt->pts;
+        pts = pkt->pts;
     }
     if (pkt->dts != AV_NOPTS_VALUE) {
-        dts = (uint32_t)pkt->dts;
+        dts = pkt->dts;
     }
 
     /*
@@ -46,8 +46,8 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
         size_t len = AV_RB16(data + 1) + 3;
 
         if (len > size) {
-            av_log(s, AV_LOG_ERROR, "Not enough data, skipping %d bytes\n",
-                     (int)size);
+            av_log(s, AV_LOG_ERROR, "Not enough data, skipping %"SIZE_SPECIFIER" bytes\n",
+                   size);
             return AVERROR_INVALIDDATA;
         }
 
@@ -63,8 +63,8 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
     }
 
     if (size > 0) {
-        av_log(s, AV_LOG_ERROR, "Skipping %d bytes after last segment in frame\n",
-                 (int)size);
+        av_log(s, AV_LOG_ERROR, "Skipping %"SIZE_SPECIFIER" bytes after last segment in frame\n",
+               size);
         return AVERROR_INVALIDDATA;
     }
 
@@ -84,7 +84,7 @@ static int sup_write_header(AVFormatContext *s)
     return 0;
 }
 
-AVOutputFormat ff_sup_muxer = {
+const AVOutputFormat ff_sup_muxer = {
     .name           = "sup",
     .long_name      = NULL_IF_CONFIG_SMALL("raw HDMV Presentation Graphic Stream subtitles"),
     .extensions     = "sup",