Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed commented out break and removed packet free since it is freed…

… at the end of the loop.

Changed write command.
  • Loading branch information...
commit 53745258dff37aefa70a9b7acdd9bb43582d3f97 1 parent d0b0234
@carsonmcdonald carsonmcdonald authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 live_segmenter.c
View
4 live_segmenter.c
@@ -295,12 +295,10 @@ int main(int argc, char **argv)
prev_segment_time = segment_time;
}
- ret = av_write_frame(output_context, &packet);
+ ret = av_interleaved_write_frame(output_context, &packet);
if (ret < 0)
{
fprintf(stderr, "Segmenter error: Could not write frame of stream: %d\n", ret);
- av_free_packet(&packet);
- //break; removed for streaming support
}
else if (ret > 0)
{
Please sign in to comment.
Something went wrong with that request. Please try again.