Skip to content

Commit fce73cf

Browse files
Don't guess time_base, don't pkt_guard
1 parent 543c225 commit fce73cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/zm_ffmpeg_input.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ int FFmpeg_Input::Open(const char *filepath) {
142142
return error;
143143
}
144144
zm_dump_codec(streams[i].context);
145-
if (!(streams[i].context->time_base.num && streams[i].context->time_base.den)) {
145+
if (0 and !(streams[i].context->time_base.num && streams[i].context->time_base.den)) {
146146
Debug(1, "Setting to default time base");
147147
streams[i].context->time_base.num = 1;
148148
streams[i].context->time_base.den = 90000;
@@ -189,7 +189,6 @@ AVFrame *FFmpeg_Input::get_frame(int stream_id) {
189189
return nullptr;
190190
}
191191

192-
193192
while (!frameComplete) {
194193
int ret = av_read_frame(input_format_context, packet.get());
195194
if (ret < 0) {
@@ -208,7 +207,7 @@ AVFrame *FFmpeg_Input::get_frame(int stream_id) {
208207
}
209208
ZM_DUMP_STREAM_PACKET(input_format_context->streams[packet->stream_index], packet, "Received packet");
210209

211-
av_packet_guard pkt_guard{packet};
210+
//av_packet_guard pkt_guard{packet};
212211

213212
if ((stream_id >= 0) && (packet->stream_index != stream_id)) {
214213
Debug(4, "Packet is not for our stream (%d)", packet->stream_index );

0 commit comments

Comments
 (0)