On 16/3/21 6:47 pm, Zane van Iperen wrote:
On 16/3/21 6:40 pm, Andreas Rheinhardt wrote:
+
+ if (ctx->is_music) {
+ if (pkt->stream_index == 0) {
+ ctx->current_track--;
I have to admit to be confused by this. Won't this imply that
ctx->current_track will always be zero for music files until you hit the
bytes_read == data_size check and that you just overwrite and therefore
leak the already allocated packets?
No, because it's a continue instead of a return, I need to counteract the
"ctx->current_track++" in the above for(;;).
Forgot to mention, it's also incremented immediately above:
pkt->stream_index = ctx->current_track++;
...Yeah, I might clean this up a bit.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".