]> git.sesse.net Git - nageru/commitdiff
Fix storing of audio sizes in the database.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 30 Mar 2019 13:23:58 +0000 (14:23 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 30 Mar 2019 13:23:58 +0000 (14:23 +0100)
futatabi/db.cpp

index 762c2fd5d4c9f9b8645b220d200387f60bd99fb3..9c6748fb257ffaa439c21e0e0f510565b0fa77cc 100644 (file)
@@ -287,7 +287,7 @@ void DB::store_frame_file(const string &filename, size_t size, const vector<Fram
                        stream->add_pts(frame.frame.pts);
                        stream->add_offset(frame.frame.offset);
                        stream->add_file_size(frame.frame.size);
-                       stream->add_audio_size(frame.frame.size);
+                       stream->add_audio_size(frame.frame.audio_size);
                }
        }
        string serialized;